When the mouse is moved up, there will be a flash of light across the picture, the effect is quite cool. So let’s realize this effect again:
The general idea is to design a transparent layer, skewx deforms by negative 25 degrees on the X-axis, the background color uses the linear gradient of CSS3 linear-gradient, and then hover time, set the animation time of 0.5s.
At the same time, use cursor:pointer on the i layer. If you do not set this, you need to wait for the transparent layer animation to see
It will be more clear!
<!DOCTYPE html >闪光图片 title>