fix firefox bugs and a small issue with the segmentation challenge animation

pull/4275/head
Jeff Escalante 2018-06-20 15:54:51 -04:00 committed by Jack Pearkes
parent 10c6d5a2d3
commit 0efaabf5d5
2 changed files with 39 additions and 9 deletions

View File

@ -83,7 +83,13 @@ if ($configChallenge) {
0.3, 0.3,
'-=2.5' '-=2.5'
) )
.to(progressBar, 3.5, { width: 40 }, 'start') .fromTo(
progressBar,
3.5,
{ attr: { width: 0 } },
{ attr: { width: 40 } },
'start'
)
.to( .to(
cog, cog,
3.5, 3.5,
@ -128,7 +134,13 @@ if ($configChallenge) {
.to(boxes, 1, {}) .to(boxes, 1, {})
.to(lines, 1, { css: { strokeDashoffset: 0 } }, 'start') .to(lines, 1, { css: { strokeDashoffset: 0 } }, 'start')
.to(boxes, 0.5, { opacity: 1 }, '-=0.4') .to(boxes, 0.5, { opacity: 1 }, '-=0.4')
.to(progress, 1, { width: 40 }, 'start') .fromTo(
progress,
1,
{ attr: { width: 0 } },
{ attr: { width: 40 } },
'start'
)
.to(dots, 0.25, { opacity: 1 }, '-=0.5') .to(dots, 0.25, { opacity: 1 }, '-=0.5')
.to(progress, 2, {}) .to(progress, 2, {})
.to(lines, 0.5, { opacity: 0 }, 'reset') .to(lines, 0.5, { opacity: 0 }, 'reset')
@ -240,10 +252,16 @@ if ($discoveryChallenge) {
.to(toLoadBalancerDown, 0.2, { css: { opacity: 1 } }, 'loadBalancerArrows') .to(toLoadBalancerDown, 0.2, { css: { opacity: 1 } }, 'loadBalancerArrows')
// load balancers progress bars, old broken link fades out // load balancers progress bars, old broken link fades out
.to(progressBars, 0.2, { css: { opacity: 1 } }) .to(progressBars, 0.2, { css: { opacity: 1 } })
.staggerTo(progressBarsBars, 1.5, { css: { width: 40 } }, 0.3) .staggerFromTo(
progressBarsBars,
1.5,
{ attr: { width: 0 } },
{ attr: { width: 40 } },
0.3
)
.to( .to(
[] []
.concat([].slice.call(toLoadBalancerRest)) .concat(toLoadBalancerRest)
.concat([].slice.call(toLoadBalancerDown)) .concat([].slice.call(toLoadBalancerDown))
.concat([ .concat([
toLoadBalancerRight, toLoadBalancerRight,
@ -317,8 +335,8 @@ if ($discoveryChallenge) {
) )
.to(toLoadBalancerDown, 0.2, { css: { opacity: 1 } }, 'loadBalancerArrows2') .to(toLoadBalancerDown, 0.2, { css: { opacity: 1 } }, 'loadBalancerArrows2')
// load balancers progress bars, old broken link fades out // load balancers progress bars, old broken link fades out
.to(progressBarsBars, 0.1, { css: { width: 0 } }) .to(progressBarsBars, 0.1, { attr: { width: 0 } })
.to(progressBars, 0.2, { css: { opacity: 1 } }) .to(progressBars, 0.2, { attr: { opacity: 1 } })
.staggerFromTo( .staggerFromTo(
progressBarsBars, progressBarsBars,
1.5, 1.5,
@ -328,7 +346,7 @@ if ($discoveryChallenge) {
) )
.to( .to(
[] []
.concat([].slice.call(toLoadBalancerRest)) .concat(toLoadBalancerRest)
.concat([].slice.call(toLoadBalancerDown)) .concat([].slice.call(toLoadBalancerDown))
.concat([ .concat([
toLoadBalancerRight, toLoadBalancerRight,
@ -542,9 +560,9 @@ if ($segmentationChallenge) {
.to(computerUpdateBox, 0.3, { opacity: 1 }, '-=0.2') .to(computerUpdateBox, 0.3, { opacity: 1 }, '-=0.2')
.to(computerUpdatePath, 0.3, { opacity: 1 }, '-=0.2') .to(computerUpdatePath, 0.3, { opacity: 1 }, '-=0.2')
// firewall progress bars // firewall progress bars
.to(progressBarBars, 0.01, { width: 0 }) .to(progressBarBars, 0.01, { attr: { width: 0 } })
.to(progressBars, 0.2, { opacity: 1 }) .to(progressBars, 0.2, { opacity: 1 })
.staggerTo(progressBarBars, 0.6, { width: 40 }, 0.2) .staggerTo(progressBarBars, 0.6, { attr: { width: 40 } }, 0.2)
// connection 1 made // connection 1 made
.to(path1a, 0.3, { css: { strokeDashoffset: 0 }, ease: Linear.easeNone }) .to(path1a, 0.3, { css: { strokeDashoffset: 0 }, ease: Linear.easeNone })
.to(path1b, 0.3, { css: { strokeDashoffset: 0 }, ease: Linear.easeNone }) .to(path1b, 0.3, { css: { strokeDashoffset: 0 }, ease: Linear.easeNone })

File diff suppressed because one or more lines are too long