@@ -123,7 +123,7 @@ export default async function({ addon }) {
123
123
}
124
124
125
125
function getAnim ( time ) {
126
- time / = animationSpeed ;
126
+ time * = animationSpeed ;
127
127
return `${ time } s ${ cubicAnimation } ` ;
128
128
} ;
129
129
@@ -189,7 +189,7 @@ export default async function({ addon }) {
189
189
190
190
const animation = element . animate (
191
191
[ { height : "0px" , opacity : 0 } , { height : `${ ogHeight } px` , opacity : 1 } ] ,
192
- { duration : animTime / animationSpeed , easing : cubicAnimation }
192
+ { duration : animTime * animationSpeed , easing : cubicAnimation }
193
193
) ;
194
194
animation . onfinish = ( ) => {
195
195
element . style . overflow = "hidden" ;
@@ -207,7 +207,7 @@ export default async function({ addon }) {
207
207
208
208
element . animate (
209
209
[ { transform : "scale(0)" , opacity : 0 } , { transform : "scale(1)" , opacity : 1 } ] ,
210
- { duration : animTime / animationSpeed , easing : cubicAnimation }
210
+ { duration : animTime * animationSpeed , easing : cubicAnimation }
211
211
) ;
212
212
}
213
213
@@ -244,11 +244,11 @@ export default async function({ addon }) {
244
244
245
245
animClone . animate (
246
246
[ { opacity : 1 } , { opacity : 0 } ] ,
247
- { duration : animTime / animationSpeed , easing : cubicAnimation }
247
+ { duration : animTime * animationSpeed , easing : cubicAnimation }
248
248
) ;
249
249
const animation = animClone . firstChild . animate (
250
250
[ { transform : "scale(1)" , opacity : 1 } , { transform : "scale(0)" , opacity : 0 } ] ,
251
- { duration : animTime / animationSpeed , easing : cubicAnimation }
251
+ { duration : animTime * animationSpeed , easing : cubicAnimation }
252
252
) ;
253
253
animation . onfinish = ( ) => {
254
254
animClone . remove ( ) ;
0 commit comments