亚洲国产日韩欧美一区二区三区,精品亚洲国产成人av在线,国产99视频精品免视看7,99国产精品久久久久久久成人热,欧美日韩亚洲国产综合乱

javascript - A small effect on the mobile terminal
過(guò)去多啦不再A夢(mèng)
過(guò)去多啦不再A夢(mèng) 2017-05-16 13:25:36
0
2
944

Scroll down and the background image shrinks.

Question: How to write this animation more smoothly (mobile version),

過(guò)去多啦不再A夢(mèng)
過(guò)去多啦不再A夢(mèng)

reply all(2)
為情所困

If you want the animation to be smooth, you can add css attributes to the DOM element where the animation is located: transition: all .8s ease;

Syntax: transition: property duration timing-function delay
transition-property: specifies the css property name for setting the transition effect
transition-duration: specifies how many seconds or milliseconds it takes to complete the transition effect
transition-timing-function: specifies the transition function, stipulates The speed curve of the speed effect
transition-delay: Specify the delay time before the onset of appearance
The default values ??are: all 0 ease 0

世界只因有你

The requirements are not clear. When scrolling up, slowly cover the top background image at the back, and finally keep half of the background image visible. If this is the case, there is no need to do animation

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template