css布局实现鼠标悬浮三维翻转显示文字效果代码
代码语言:html
所属分类:悬停
代码描述:css布局实现鼠标悬浮三维翻转显示文字效果代码
下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开
<!DOCTYPE html> <html> <head> <title></title> <meta charset="utf-8"> <link type="text/css" rel="stylesheet" href="//repo.bfw.wiki/bfwrepo/css/reset.min.css"> <style type="text/css"> body { font-family: Tahoma, Arial; } #content { margin: 100px auto 0; } #content li, #content .wrapper, #content li img, #content li span { width: 310px; height: 150px; } #content li { cursor: pointer; -webkit-perspective: 4000px; width: 310px; height: 150px; float: left; margin-left: 60px; /*box-shadow: 2px 2px 5px #888888;*/ } #content .wrapper { position: relative; -webkit-transform-style: preserve-3d; -webkit-transition: -webkit-transform .6s; } #content li img { top: 0; border-radius: 3px; box-shadow: 0px 3px 8px rgba(0, 0, 0, 0.3); position: absolute; -webkit-transform: translateZ(50px); -webkit-transition: all .6s; } #content li span { text-align: center; background: white; text-shadow: 1px 1px 1px #6699CC; position: absolute; -webkit-transform: rotateX(-90deg) translateZ(50px); -webkit-transition: all .6s; display: block; top: 0; border-radius: 15px; font-size: 12px; padding: 10px; width: 290px; .........完整代码请登录后点击上方下载按钮下载查看
网友评论0