css实现打电话计时动画交互效果代码
代码语言:html
所属分类:动画
代码描述:css实现打电话计时动画交互效果代码
下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <link href="https://fonts.googleapis.com/css?family=Open+Sans:300,400,700" rel="stylesheet"> <style> body { overflow: hidden; font-family: 'Open Sans', sans-serif; } .wrapper { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); cursor: pointer; } .wrapper.animate { pointer-events: none; } .wrapper.animate .call { width: 400px; height: 400px; opacity: 1; overflow: initial; transition: all 800ms; } .wrapper.animate .call p, .wrapper.animate .call span { transform: scale(1); } .wrapper.animate .phone { -webkit-animation: rotate 0.5s linear 0s forwards; animation: rotate 0.5s linear 0s forwards; } .wrapper.animate .phone::after { width: 0; height: 0; } .wrapper.animate .phone::before { width: 0; height: 0; } .loading::after { content: '\2026'; /* ascii code for the ellipsis character */ overflow: hidden; display: inline-block; vertical-align: bottom; -webkit-animation: ellipsis steps(4, end) 2s infinite; animation: ellipsis steps(4, end) 2s infinite; width: 0px; position: absolute; } .........完整代码请登录后点击上方下载按钮下载查看
网友评论0