最新文章专题视频专题问答1问答10问答100问答1000问答2000关键字专题1关键字专题50关键字专题500关键字专题1500TAG最新视频文章推荐1 推荐3 推荐5 推荐7 推荐9 推荐11 推荐13 推荐15 推荐17 推荐19 推荐21 推荐23 推荐25 推荐27 推荐29 推荐31 推荐33 推荐35 推荐37视频文章20视频文章30视频文章40视频文章50视频文章60 视频文章70视频文章80视频文章90视频文章100视频文章120视频文章140 视频2关键字专题关键字专题tag2tag3文章专题文章专题2文章索引1文章索引2文章索引3文章索引4文章索引5123456789101112131415文章专题3
当前位置: 首页 - 科技 - 知识百科 - 正文

CSS3鼠标悬停图片动画_html/css

来源:动视网 责编:小采 时间:2020-11-27 16:11:22
文档

CSS3鼠标悬停图片动画_html/css

CSS3鼠标悬停图片动画_html/css_WEB-ITnose:鼠标放到图片上后: demo地址:demo div: 1 2 3 4 5 6 7 8 9 Heading here10 Description goes here11 12 13 14 css: 1 .wai{ 2 height: 220px; 3 position: relative; 4 width: 2
推荐度:
导读CSS3鼠标悬停图片动画_html/css_WEB-ITnose:鼠标放到图片上后: demo地址:demo div: 1 2 3 4 5 6 7 8 9 Heading here10 Description goes here11 12 13 14 css: 1 .wai{ 2 height: 220px; 3 position: relative; 4 width: 2
 鼠标放到图片上后:

demo地址:demo

div:

 1 2 3 4 5  6 7 8 9 

Heading here

10

Description goes here

11 12 13 14

css:

 1 .wai{ 2 height: 220px; 3 position: relative; 4 width: 220px; 5 } 6 .wai * { 7 box-sizing: border-box; 8 } 9 10 /*圆形边框*/ 11 .wai .spinner{ 12 border-color: #e53aec #74b9d2 #74b9d2 #e234ec; /*上右下左的边框颜色*/ 13 border-image: none; 14 border-radius: 50%; 15 border-style: solid; 16 border-width: 10px; 17 height: 230px; 18 transition: all 0.8s ease-in-out 0s; 19 width: 230px; 20 } 21 22 /*图片*/ 23 .wai .img::before { 24 display: none; 25 border-radius: 50%; 26 box-shadow: 0 0 0 16px rgba(255, 255, 255, 0.6) inset, 0 1px 2px rgba(0, 0, 0, 0.3); 27 content: ""; 28 height: 100%; 29 position: absolute; 30 transition: all 0.35s ease-in-out 0s; 31 width: 100%; 32 } 33 .wai .img { 34 border-radius: 50%; 35 bottom: 0; 36 height: auto; 37 left: 10px; 38 position: absolute; 39 right: 0; 40 top: 10px; 41 width: auto; 42 vertical-align: middle; 43 } 44 .wai .img img { 45 border-radius: 50%; 46 height: 100%; 47 width: 100%; 48 49 } 50 51 52 /*下方文字的设置*/ 53 54 .wai .info { 55 background: rgba(0, 0, 0, 0.6) none repeat scroll 0 0; 56 bottom: 0; 57 left: 10px; 58 opacity: 0; 59 right: 0; 60 top: 10px; 61 transition: all 0.8s ease-in-out 0s; 62 } 63 .info { 64 backface-visibility: hidden; 65 border-radius: 50%; 66 bottom: 0; 67 left: 0px; 68 position: absolute; 69 right: 0; 70 text-align: center; 71 top: 0px; 72 } 73 .wai .info p { 74 color: #bbb; 75 padding: 10px 5px; 76 font-style: italic; 77 margin: 0 30px; 78 font-size: 12px; 79 border-top: 1px solid rgba(255, 255, 255, 0.5); 80 } 81 .wai .info h3 { 82 color: #fff; 83 text-transform: uppercase; 84 position: relative; 85 letter-spacing: 2px; 86 font-size: 22px; 87 margin: 0 30px; 88 padding: 55px 0 0 0; 89 height: 110px; 90 text-shadow: 0 0 1px white, 0 1px 2px rgba(0, 0, 0, 0.3); 91 } 92 93 /*hover后的动作---*/ 94 .wai a:hover { 95 text-decoration: none; 96 } 97 .wai a:hover .spinner { 98 -webkit-transform: rotate(180deg); 99 -moz-transform: rotate(180deg);100 -ms-transform: rotate(180deg);101 -o-transform: rotate(180deg);102 transform: rotate(180deg);103 }104 105 .wai a:hover .info {106 opacity: 1;107 }

文档

CSS3鼠标悬停图片动画_html/css

CSS3鼠标悬停图片动画_html/css_WEB-ITnose:鼠标放到图片上后: demo地址:demo div: 1 2 3 4 5 6 7 8 9 Heading here10 Description goes here11 12 13 14 css: 1 .wai{ 2 height: 220px; 3 position: relative; 4 width: 2
推荐度:
标签: 照片 图片 动画
  • 热门焦点

最新推荐

猜你喜欢

热门推荐

专题
Top