Temporary browsable Carousel on photo page
Stuff to be fixed/work on: - Why is currentPhoto only triggered at the second photo and not the first? - popState events (prev/next on browser) not working - detect URL changes and change the currentIndex
This commit is contained in:
@@ -45,7 +45,7 @@
|
||||
|
||||
// Photo
|
||||
&__photo {
|
||||
$duration: 0.9s;
|
||||
$duration: 1s;
|
||||
|
||||
opacity: 0;
|
||||
overflow: hidden;
|
||||
@@ -57,7 +57,7 @@
|
||||
height: 100%;
|
||||
transform: scale($scale);
|
||||
box-shadow: 0 pxVW(15) pxVW(60) rgba(#000, 0.3);
|
||||
transition: transform $duration $ease-quart, opacity $duration $ease-quart;
|
||||
transition: transform $duration $ease-quart, opacity $duration / 2 $ease-quart;
|
||||
will-change: transform, opacity;
|
||||
|
||||
@include breakpoint (sm) {
|
||||
|
||||
Reference in New Issue
Block a user