jquery+svg实现带过渡动画的全屏屏弹出层效果代码
代码语言:html
所属分类:弹出层
代码描述:jquery+svg实现带过渡动画的全屏屏弹出层效果代码
下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开
<!doctype html> <html lang="zh" class="no-js"> <head> <meta charset="UTF-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>基于SVG路径动画的全屏模态窗口特效</title> <style> body, html { font-size: 100%; padding: 0; margin: 0;} /* Reset */ *, *:after, *:before { -webkit-box-sizing: border-box; -moz-box-sizing: border-box; box-sizing: border-box; } /* Clearfix hack by Nicolas Gallagher: http://nicolasgallagher.com/micro-clearfix-hack/ */ .clearfix:before, .clearfix:after { content: " "; display: table; } .clearfix:after { clear: both; } body{ background: #f9f7f6; color: #404d5b; font-weight: 500; font-size: 1.05em; font-family: "Segoe UI", "Lucida Grande", Helvetica, Arial, "Microsoft YaHei", FreeSans, Arimo, "Droid Sans", "wenquanyi micro hei", "Hiragino Sans GB", "Hiragino Sans GB W3", "FontAwesome", sans-serif; } a{color: #2fa0ec;text-decoration: none;outline: none;} a:hover,a:focus{color:#74777b;} /* -------------------------------- Primary style -------------------------------- */ *, *::after, *::before { box-sizing: border-box; } html { font-size: 62.5%; } body { font-size: 1.6rem; font-family: "Roboto", sans-serif; color: #1f4c74; background-color: #f2f2f2; } a { color: #dab433; text-decoration: none; } svg { max-width: 100%; } /* -------------------------------- Patterns - reusable parts of our design -------------------------------- */ .cd-btn { display: inline-block; padding: 1em 2em; color: #dab433; border: 2px solid #dab433; font-weight: 700; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; } .no-touch .cd-btn:hover { background-color: #dab433; color: #f2f2f2; } /* -------------------------------- Main Content -------------------------------- */ .cd-main-content { position: relative; width: 100%; height: 100vh; display: table; } .cd-main-content .center { display: table-cell; vertical-align: middle; text-align: center; } .cd-main-content h1 { font-size: 2.2rem; line-height: 1; margin-bottom: 1em; } @media only screen and (min-width: 768px) { .cd-main-content h1 { font-size: 4rem; .........完整代码请登录后点击上方下载按钮下载查看
网友评论0