lz It’s you again! ! , 1: The floating box uses layout position:fixed 2: The image rotation is css3 attribute transform:rotate |rotateX Y Z|rotate3d Implementation ideas of color change: 1: Image color change css3 filter attribute, There are only a few variations, but the compatibility is not that good
2:布局的背景色 变化
3:图片切换
I’ve told you the idea, just search, try and learn ~~~
Use transform:rotate(xxdeg) for rotation, preferably with transition Smooth transition For simple color change, use opacity or filter, such as -webkit-filter:grayscale(1)
The floating box that moves with the mouse seems to use js
lz It’s you again! ! ,
1: The floating box uses layout position:fixed
2: The image rotation is css3 attribute transform:rotate |rotateX Y Z|rotate3d
Implementation ideas of color change: 1: Image color change css3 filter attribute, There are only a few variations, but the compatibility is not that good
I’ve told you the idea, just search, try and learn ~~~
<ul>
</ul>
li:hover p { color:red; }
is the same for other changes,
Pure CSS implementation? Similar effects are mostly achieved using jquery. Check it out at Lazy Gallery or Script Home.
Use
transform:rotate(xxdeg)
for rotation, preferably withtransition
Smooth transitionFor simple color change, use
opacity
orfilter
, such as-webkit-filter:grayscale(1)
The floating box that moves with the mouse seems to use js