💄 Site > Demo > Add easings

This commit is contained in:
brunosimon
2018-01-01 12:37:40 +01:00
parent 4776ec58c3
commit 5326cdff6d
2 changed files with 9 additions and 3 deletions
-1
View File
@@ -91,7 +91,6 @@ export default class Demo
*/ */
goStep(index) goStep(index)
{ {
console.log(index)
// // Remove old step class // // Remove old step class
// if(this.step !== null) // if(this.step !== null)
// { // {
+9 -2
View File
@@ -100,7 +100,10 @@ section.header
top -150px top -150px
left -245px left -245px
opacity 0 opacity 0
transition transform 0.75s, opacity 0.75s transform scale(0.8, 0.8)
transition-property transform, opacity
transition-duration 0.75s, 0.75s
transition-timing-function cubic-bezier(0.42, 0, 0.70, 1.40), ease-in-out
will-change transform will-change transform
video video
@@ -131,6 +134,7 @@ section.header
transform translateX(-120%) transform translateX(-120%)
opacity 0 opacity 0
transition transform 0.75s, opacity 0.75s transition transform 0.75s, opacity 0.75s
transition-timing-function cubic-bezier(0.42, 0, 0.70, 1.40), ease-in-out
will-change transform will-change transform
video video
@@ -243,14 +247,17 @@ section.header
&.step-1 &.step-1
.speaker .speaker
opacity 1 opacity 1
transition-duration 0.5s, 0.5s
transform scale(1, 1)
&.step-2 &.step-2
.speaker .speaker
transform translateX(60%) transform translateX(60%)
transition-duration 0.75s, 0.75s
.audience .audience
transform translateX(-60%) transform translateX(-60%)
transition-delay 0.15s, 0.15s transition-delay 0.25s, 0.25s
opacity 1 opacity 1
&.step-3 &.step-3