This commit is contained in:
2020-03-11 17:23:58 +01:00
parent 8c9000a7c9
commit 8aa2524e7f
4 changed files with 2 additions and 182 deletions

View File

@@ -27,23 +27,6 @@
*/
onMount(() => {
animateIn(scope)
// Parallax on photo when the image has been loaded
// const parallaxNumber = basicScroll.default.create({
// elem: photoElement.querySelector('.photo__number'),
// direct: photoElement,
// from: 'top-bottom',
// to: 'bottom-top',
// props: {
// '--translate': {
// from: '-75%',
// to: '-25%'
// }
// }
// })
// parallaxNumber.start()
// parallaxNumber.calculate()
// parallaxNumber.update()
})
</script>
@@ -69,8 +52,8 @@
<source media="(min-width: 300px)" data-srcset={getThumbnail(photo.image.private_hash, 400)}>
<img src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAADUlEQVR42mP8/+HRfwAJmQPS6gISLwAAAABJRU5ErkJggg=="
data-src="{getThumbnail(photo.image.private_hash, 900)}"
width={defaultWidth} height={defaultHeight}
alt={imgAlt}
width={defaultWidth} height={defaultHeight}
class="lazyload"
>