Last active
September 24, 2020 21:50
-
-
Save scottkellum/570121789a127372dd84b4036dd3b306 to your computer and use it in GitHub Desktop.
Generated by SassMeister.com.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$width: -266px; | |
$cards: 10; | |
$delay: .8; | |
@keyframes PackageCarousel-background { | |
@for $i from 0 through $cards { | |
#{100% / $cards * $i} { | |
background-position-x: $width * $i; | |
} | |
@if ((100% / $cards * $i + (100% / $cards * $delay)) <= 100%) { | |
#{100% / $cards * $i + (100% / $cards * $delay)} { | |
background-position-x: $width * $i; | |
} | |
} | |
} | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@keyframes PackageCarousel-background { | |
0% { | |
background-position-x: 0px; | |
} | |
8% { | |
background-position-x: 0px; | |
} | |
10% { | |
background-position-x: -266px; | |
} | |
18% { | |
background-position-x: -266px; | |
} | |
20% { | |
background-position-x: -532px; | |
} | |
28% { | |
background-position-x: -532px; | |
} | |
30% { | |
background-position-x: -798px; | |
} | |
38% { | |
background-position-x: -798px; | |
} | |
40% { | |
background-position-x: -1064px; | |
} | |
48% { | |
background-position-x: -1064px; | |
} | |
50% { | |
background-position-x: -1330px; | |
} | |
58% { | |
background-position-x: -1330px; | |
} | |
60% { | |
background-position-x: -1596px; | |
} | |
68% { | |
background-position-x: -1596px; | |
} | |
70% { | |
background-position-x: -1862px; | |
} | |
78% { | |
background-position-x: -1862px; | |
} | |
80% { | |
background-position-x: -2128px; | |
} | |
88% { | |
background-position-x: -2128px; | |
} | |
90% { | |
background-position-x: -2394px; | |
} | |
98% { | |
background-position-x: -2394px; | |
} | |
100% { | |
background-position-x: -2660px; | |
} | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"sass": { | |
"compiler": "dart-sass/1.26.11", | |
"extensions": {}, | |
"syntax": "SCSS", | |
"outputStyle": "expanded" | |
}, | |
"autoprefixer": false | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment