Site > Demo > Improve

This commit is contained in:
brunosimon
2017-12-31 18:31:03 +01:00
parent fd45eb3570
commit 59a6846d84
4 changed files with 128 additions and 14 deletions
+10
View File
@@ -72,6 +72,16 @@ export default class Demo
this.goStep(3)
}
if(this.speakerCurrentTime < 15.5 && this.$speakerVideo.currentTime >= 15.5)
{
this.goStep(4)
}
if(this.speakerCurrentTime < 17.5 && this.$speakerVideo.currentTime >= 17.5)
{
this.goStep(5)
}
this.speakerCurrentTime = this.$speakerVideo.currentTime
this.audienceCurrentTime = this.$audienceVideo.currentTime
}
+74 -2
View File
@@ -1,3 +1,6 @@
random(min, max)
return math(0, 'random')*(max - min + 1) + min
section.header
height 940px
position relative
@@ -97,7 +100,6 @@ section.header
top -150px
left -245px
opacity 0
overflow hidden
transition transform 0.75s, opacity 0.75s
will-change transform
@@ -120,12 +122,12 @@ section.header
left -245px
transform translateX(-120%)
opacity 0
overflow hidden
transition transform 0.75s, opacity 0.75s
will-change transform
video
border-radius 5px
.icon
position absolute
left calc(50% - 20px)
@@ -166,6 +168,62 @@ section.header
transition transform 1s cubic-bezier(0.75, 0, 0.58, 1)
will-change transform
.bars
position absolute
top 0
left 0
opacity 0
transition opacity 0.5s
will-change opacity
.bar
position absolute
top 0
left 0
animation-name header-bar-translation
animation-iteration-count infinite
animation-timing-function linear
animation-play-state paused
will-change transform
&.color-1
background #a3d1c6
&.color-2
background #ffffff
&.color-3
background #e67553
&.color-4
background #fbfb8c
&.size-1
width 100px
height 5px
&.size-2
width 60px
height 3px
&.size-3
width 80px
height 4px
for $num in (0..50)
&.animation-{$num}
animation-duration unit(random(0.2, 0.5), 's')
for $num in (0..50)
&.pos-{$num}
top unit(random(-50, 50), 'px')
@keyframes header-bar-translation
0%
transform translateX(200px)
100%
transform translateX(-200px)
&.step-1
.speaker
opacity 1
@@ -184,6 +242,20 @@ section.header
opacity 1
transform translateX(-432px) translateY(-111px)
&.step-4
.bars
opacity 1
.bar
animation-play-state running
&.step-5
.bars
opacity 0
.bar
animation-play-state running
.get-started-button
position absolute
bottom 130px