日历与时钟的完美融合效果
代码语言:html
所属分类:布局界面
代码描述:日历与时钟的完美融合效果,点击不放就会展开时钟
下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <link href='https://fonts.googleapis.com/css?family=Source+Sans+Pro:200,600,900|Open+Sans+Condensed:300,300italic,700&subset=latin,latin-ext' rel='stylesheet' type='text/css'> <style> /* -- usable codes start -- */ html, body, div, span, object, iframe, h1, h2, h3, h4, h5, h6, p, blockquote, pre, a, abbr, acronym, address, code, del, dfn, em, img, q, dl, dt, dd, ol, ul, li, fieldset, form, label, legend, table, caption, tbody, tfoot, thead, tr, th, td, article, aside, dialog, figure, footer, header, hgroup, nav, section { margin: 0; padding: 0; border: 0; font-weight: inherit; font-style: inherit; font-size: 100%; font-family: inherit; vertical-align: baseline; text-decoration: none; list-style: none; } img { width: 100% } .anim04c { -webkit-transition: all .4s cubic-bezier(.5, .35, .15, 1.4); transition: all .4s cubic-bezier(.5, .35, .15, 1.4); } html, body { width: 100%; height: 100%; font-family: 'Source Sans Pro', sans-serif; background: #eee; color: #666; } body { overflow-x: hidden; overflow-y: auto; } /*-----*/ .outer { position: relative; top: 50%; z-index: 1; -webkit-transform: translateY(-50%); -moz-transform: translateY(-50%); -ms-transform: translateY(-50%); -o-transform: translateY(-50%); transform: translateY(-50%); cursor: pointer; } /*-----*/ .signboard { width: 100px; height: 100px; margin: auto; color: #fff; border-radius: 10px; } /*-----*/ .front { position: absolute; top: 0; left: 0; z-index: 3; background: #ff726b; text-align: center; } .right { position: absolute; right: : 0; z-index: 2; -webkit-transform: rotate(-10deg) translate(7px, 8px); -moz-transform: rotate(-10deg) translate(7px, 8px); -ms-transform: rotate(-10deg) translate(7px, 8px); -o-transform: rotate(-10deg) translate(7px, 8px); transform: rotate(-10deg) translate(7px, 8px); background: #EFC94C; } .left { position: absolute; left: 0; z-index: 1; -webkit-transform: rotate(5deg) translate(-4px, 4px); -moz-transform: rotate(5deg) translate(-4px, 4px); -ms-transform: rotate(5deg) translate(-4px, 4px); -o-transform: rotate(5deg) translate(-4px, 4px); transform: rotate(5deg) translate(-4px, 4px); background: #3498DB; } /*-----*/ .outer:hover .inner { -webkit-transform: rotate(0) translate(0); -moz-transform: rotate(0) translate(0); -ms-transform: rotate(0) translate(0); -o-transform: rotate(0) translate(0); transform: rotate(0) translate(0); } /*-----*/ .outer:active .inner { -webkit-transform: rotate(0) translate(0) scale(0.9); -moz-transform: rotate(0) translate(0) scale(0.9); -ms-transform: rotate(0) translate(0) scale(0.9); -o-transform: rotate(0) translate(0) scale(0.9); transform: rotate(0) translate(0) scale(0.9); } .outer:active .front .date { -webkit-transform: scale(2); } .outer:active .front .day, .outer:active .front .month { visibility: hidden; opacity: 0; -webkit-transform: scale(0); -moz-transform: scale(0); -ms-transform: scale(0); -o-transform: scale(0); transform: scale(0); } .outer:active .right { -webkit-transform: rotate(-5deg) translateX(80px) scale(0.9); -moz-transform: rotate(-5deg) translateX(80px) scale(0.9); -ms-transform: rotate(-5deg) translateX(80px) scale(0.9); -o-transform: rotate(-5deg) translateX(80px) scale(0.9); transform: rotate(-5deg) translateX(80px) scale(0.9); } .outer:active .left { -webkit-transform: rotate(5deg) translateX(-80px) scale(0.9); -moz-transform: rotate(5deg) translateX(-80px) scale(0.9); -ms-transform: rotate(5deg) translateX(-80px) scale(0.9); -o-transform: rotate(5deg) translateX(-80px) scale(0.9); transform: rotate(5deg) translateX(-80px) scale(0.9); } /*-----*/ .outer:active .calendarMain { -webkit-transform: scale(1.8); opacity: 0; visibility: hidden; } .outer:active .clock { -webkit-transform: scale(1.4); opacity: 1; visibility: visible; } .outer:active .calendarNormal { bottom: -30px; opacity: 1; visibility: visible; } .outer:active .year { top: -30px; opacity: 1; visibility: visible; letter-spacing: 3px; } /*-----*/ .calendarMain { width: 100%; height: 100%; position: absolute; opacity: 1; } .month, .day { font-size: 10px; line-height: 30px; font-weight: 600; text-transform: uppercase; letter-spacing: 3px; } .date { font-size: 40px; line-height: 40px; font-weight: 300; text-transform: uppercase; letter-spacing: 3px; } /*-----*/ .clock { width: 100%; height: 100%; position: absolute; font-size: 40px; line-height: 100px; font-weight: 300; text-transform: uppercase; letter-spacing: 3px; text-align: center; opacity: 0; visibility: hidden; } /*-----*/ .year { width: 100%; position: absolute; top: 0; font-size: 14px; line-height: 30px; font-weight: 300; text-transform: uppercase; le.........完整代码请登录后点击上方下载按钮下载查看
网友评论0