jquery+css点击按钮炫酷云雾动画弹出层效果代码
代码语言:html
所属分类:弹出层
代码描述:jquery+css点击按钮炫酷云雾动画弹出层效果代码
下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开
<!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1"> <link type="text/css" rel="stylesheet" href="//repo.bfw.wiki/bfwrepo/css/reset.min.css"> <style> /* -------------------------------- Primary style -------------------------------- */ *, *::after, *::before { box-sizing: border-box; } html { font-size: 62.5%; } body { font-size: 1.6rem; font-family: "PT Sans", sans-serif; color: #242322; background-color: #ffffff; } a { color: #a5c4bc; text-decoration: none; } /* -------------------------------- Patterns - reusable parts of our design -------------------------------- */ .cd-btn { display: inline-block; padding: 1.6em 2.4em; font-size: 1.4rem; letter-spacing: .15em; color: #ffffff; font-weight: 700; text-transform: uppercase; background-color: #a5c4bc; box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08); -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; -webkit-transition: box-shadow 0.3s; -moz-transition: box-shadow 0.3s; transition: box-shadow 0.3s; } .no-touch .cd-btn:hover { box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1); } /* -------------------------------- Typography -------------------------------- */ h1 { font-size: 2.6rem; line-height: 1; margin-bottom: 1em; font-family: "IM Fell Double Pica", serif; font-style: italic; } @media only screen and (min-width: 768px) { h1 { font-size: 5rem; } } /* -------------------------------- Main Content -------------------------------- */ .cd-main-content { position: relative; z-index: 1; width: 100%; height: 100vh; /* vertically align its content */ display: table; background-color: #e4dcca; } .cd-main-content .center { /* vertically align inside parent element */ display: table-cell; vertical-align: middle; text-align: center; } /* -------------------------------- Modal window -------------------------------- */ .cd-modal { position: fixed; top: 0; left: 0; z-index: 3; height: 100%; width: 100%; overflow: hidden; background: #402f44 url(//repo.bfw.wiki/bfwrepo/svg/loading/modal-bg.jpg) no-repeat center center; background-size: cover; opacity: 0; visibility: hidden; -webk.........完整代码请登录后点击上方下载按钮下载查看
网友评论0