css实现悬浮按钮三维翻转效果代码
代码语言:html
所属分类:悬停
代码描述:css实现悬浮按钮三维翻转效果代码
下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开
<!DOCTYPE html> <html lang="zh"> <head> <meta charset="UTF-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"> <style> body{ background: #494A5F; padding-top: 100px; } figure { width: 200px; height: 60px; margin: 50px auto; cursor: pointer; perspective: 500px; -webkit-perspective: 500px; } figure div { height: 100%; transform-style: preserve-3d; -webkit-transform-style: preserve-3d; transition: 0.25s; -webkit-transition: 0.25s; } figure:hover div { transform: rotateX(-90deg); } span.face { width: 100%; height: 100%; position: absolute; box-sizing: border-box; border:.........完整代码请登录后点击上方下载按钮下载查看
网友评论0