html图片鼠标动态效果代码,CSS3鼠标hover图片动画特效代码

阅读: 评论:0

2024年2月8日发(作者:)

html图片鼠标动态效果代码,CSS3鼠标hover图片动画特效代码

bottom: 5px;right: 5px;opacity: 1;z-index: 2;transition: all 1s ease 0s;}.box:hover:before{ border: 1px solid rgba(255, 255, 255, 0.18); }.box:after{content: "";display: block;border: 10px solid #fff;position: absolute;top: 35px;left: 35px;bottom: 35px;right: 35px;opacity: 1;z-index: 1;transition: all 0.3s ease 0s;}.box:hover:after{top: 0;left: 0;bottom: 0;right: 0;opacity: 0;}.box img{width: 100%;height: auto;transform: scale(1.1);transition: all 1s ease 0s;}.box:hover img{ transform: scale(1); }

.box .box-content{padding: 20px;text-align: center;color: #fff;position: absolute;top: 45px;left: 45px;bottom: 45px;right: 45px;opacity: 1;z-index: 2;transition: all 0.3s ease 0s;}.box:hover .box-content{top: 6px;left: 6px;bottom: 6px;right: 6px;}.box .box-inner-content{width: 100%;padding-bottom: 20px;opacity: 0;position: absolute;bottom: 0;left: 0;transition: all 0.3s ease 0s;}.box:hover .box-inner-content{ opacity: 1; }.box .title{font-size: 26px;font-weight: bold;margin: 0;}

.box .post{display: block;font-size: 16px;font-style: italic;margin-bottom: 10px;}.box .icon{padding: 0;margin: 0;list-style: none;}.box .icon li{ display: inline-block; }.box .icon li a{display: block;width: 40px;height: 40px;line-height: 40px;border-radius: 50%;background: #fff;margin-right: 10px;font-size: 18px;color: #000;transition: all 0.3s ease 0s;}.box .icon li a:hover{background: #000;color: #fff;}@media only screen and (max-width:990px){.box{ margin-bottom: 30px; }}

html图片鼠标动态效果代码,CSS3鼠标hover图片动画特效代码

本文发布于:2024-02-08 08:47:21,感谢您对本站的认可!

本文链接:https://www.4u4v.net/it/170735324167086.html

版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。

留言与评论(共有 0 条评论)
   
验证码:
排行榜

Copyright ©2019-2022 Comsenz Inc.Powered by ©

网站地图1 网站地图2 网站地图3 网站地图4 网站地图5 网站地图6 网站地图7 网站地图8 网站地图9 网站地图10 网站地图11 网站地图12 网站地图13 网站地图14 网站地图15 网站地图16 网站地图17 网站地图18 网站地图19 网站地图20 网站地图21 网站地图22/a> 网站地图23