清爽手表走动效果
代码语言:html
所属分类:动画
代码描述:清爽手表走动效果
代码标签: 效果
下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <style> @import url("https://fonts.googleapis.com/css?family=Open+Sans:400,600,700"); body { background-color: #fff; min-height: 100vh; display: -webkit-box; display: flex; -webkit-box-align: center; align-items: center; -webkit-box-pack: center; justify-content: center; font-family: 'Open Sans', sans-serif; } .wrapper { position: relative; } .watch-case { position: absolute; z-index: 4; top: 50%; left: 50%; -webkit-transform: translate(-50%, -50%); transform: translate(-50%, -50%); height: 400px; width: 400px; overflow: hidden; background-image: linear-gradient(-45deg, #fdfdfd, #ceced6, #fdfdfd); border-radius: 50%; box-shadow: 0 0 1px 2px rgba(180,177,193,0.7); } .watch-center { background-image: radial-gradient(#fff, #eeeeef); height: 380px; width: 380px; border-radius: 50%; position: absolute; z-index: 4; left: 50%; top: 50%; -webkit-transform: translate(-50%, -50%); transform: translate(-50%, -50%); box-shadow: -1px -1px 1px 0 #fdfdfd, 0 0 0 2px #b8b7c3, inset 0 0 0 2px #d1d1d6, inset 0 0 0 4px rgba(255,255,255,0.7), inset 0 0 8px 8px rgba(0,0,0,0.1), inset 0 0 50px 50px rgba(0,0,0,0.05); } .watch-strap { position: absolute; top: 50%; left: 50%; -webkit-transform: translate(-50%, -50%); transform: translate(-50%, -50%); height: 480px; width: 220px; background-color: #101022; border-radius: 6px; z-index: 2; } .watch-strap .strap-circle { position: absolute; height: 409px; width: 409px; background-color: transparent; top: 50%; left: 50%; -webkit-transform: translate(-50%, -50%); transform: translate(-50%, -50%); border-radius: 50%; box-shadow: inset -1px 0 8px 3px #151427, 0 0 2px 1px rgba(255,255,255,0.8); } .watch-strap .strap-circle:after { content: ""; display: block; height: 100%; width: 72px; left: -2px; position: absolute; background-color: #fff; } .watch-strap .strap-circle:before { content: ""; display: block; height: 100%; width: 72px; background-color: #fff; position: absolute; right: -2px; } .watch-strap .strap { position: absolute; top: 50%; left: 50%; -webkit-transform: translate(-50%, -50%); transform: translate(-50%, -50%); height: 480px; width: 220px; background-color: #101022; border-radius: 6px; z-index: 2; box-shadow: -1px 0 1px 0 #000, inset 0 20px 40px -20px #172365, inset 0 -20px 40px -20px rgba(23,35,101,0.7); } .watch-strap-holder { position: absolute; background-color: #e7e7ea; height: 150px; width: 20px; left: -20px; border-radius: 3px; top: -2px; z-index: -1; box-shadow: inset 0 0 4px 1px rgba(0,0,0,0.2); } .watch-strap-holder.left-bottom { -webkit-transform: scaleY(-1); transform: scaleY(-1); top: 332px; left: -20px; } .watch-strap-holder.right-up { -webkit-transform: scaleX(-1); transform: scaleX(-1); left: 220px; box-shadow: inset 0 0 4px 1px rgba(0,0,0,0.2); } .watch-strap-holder.right-up:after { border-radius: 14px 70px 0 0; box-shadow: inset 0px 3px 1px -2px rgba(255,255,255,0.6), inset -10px -15px 1px 2px #dcdce4, inset -2px 10px 4px 2px #181820; } .watch-strap-holder.right-bottom { -webkit-transform: scaleY(-1) scaleX(-1); transform: scaleY(-1) scaleX(-1); top: 332px; left: 220px; } .watch-strap-holder.right-bottom:after { border-radius: 14px 70px 0 0; box-shadow: inset 0px 3px 1px -2px rgba(255,255,255,0.6), inset -10px -15px 1px 2px #dcdce4, inset -2px 10px 4px 2px #181820; } .watch-strap-holder:before { content: ""; display: block; position: absolute; background-color: #e7e7ea; height: 150px; width: 10px; border-radius: 3px 0; -webkit-transform: rotate(4deg); transform: rotate(4deg); left: -5px; box-shadow: inset 5px 5px 4px -5px rgba(0,0,0,0.2); } .watch-strap-holder:after { content: ""; display: block; position: absolute; background-color: transparent; background-image: -webkit-gradient(linear, left top, left bottom, from(transparent), to(#fff)); background-image: linear-gradient(to bottom, transparent, #fff); height: 150px; width: 30px; border-radius: 12px; -webkit-transform: rotate(4deg); transform: rotate(4deg); top: 10px; left: -4px; box-shadow: inset -3px 8px 2px 2px #181820; } .reflection { content: ""; display: block; height: 16px; width: 30px; position: absolute; top: 50px; left: 50px; background-color: #080817; -webkit-filter: blur(1px); filter: blur(1px); -webkit-transform: rotate(-56deg) skewX(30deg) scale(0.6); transform: rotate(-56deg) skewX(30deg) scale(0.6); } .reflection.bottom { top: 337px; left: 312px; } .reflection.bottom:after { height: 39px; width: 43px; left: -60px; top: -14px; -webkit-transform: rotate(-44deg); transform: rotate(-44deg); box-shadow: 34px 17px 0 8px #080817; } .reflection:after { content: ""; display: block; background-color: transparent; height: 40px; width: 30px; border-radius: 50%; background-color: transparent; position: absolute; left: -48px; top: -11px; -webkit-transform: rotate(-69deg); transform: rotate(-69deg); box-shadow: 34px 17px 0 20px #080817; } .reflection:before { content: ""; display: block; background-color: transparent; height: 40px; width: 30px; bo.........完整代码请登录后点击上方下载按钮下载查看
网友评论0