div+css实现一个创意悬浮登录表单页面裂开出现效果代码
代码语言:html
所属分类:表单美化
代码描述:div+css实现一个创意悬浮登录表单页面裂开出现效果代码
代码标签: div css 创意 悬浮 登录 表单 页面 裂开 出现
下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开
<!DOCTYPE html> <html lang="en" > <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/normalize.5.0.css"> <style> @import url("https://fonts.googleapis.com/css?family=Raleway:400,700"); *, *:before, *:after { box-sizing: border-box; } body { min-height: 100vh; font-family: "Raleway", sans-serif; } .container { position: absolute; width: 100%; height: 100%; overflow: hidden; } .container:hover .top:before, .container:hover .top:after, .container:hover .bottom:before, .container:hover .bottom:after, .container:active .top:before, .container:active .top:after, .container:active .bottom:before, .container:active .bottom:after { margin-left: 200px; transform-origin: -200px 50%; transition-delay: 0s; } .container:hover .center, .container:active .center { opacity: 1; transition-delay: 0.2s; } .top:before, .top:after, .bottom:before, .bottom:after { content: ""; display: block; position: absolute; width: 200vmax; height: 200vmax; top: 50%; left: 50%; margin-top: -100vmax; transform-origin: 0 50%; transition: all 0.5s cubic-bezier(0.445, 0.05, 0, 1); z-in.........完整代码请登录后点击上方下载按钮下载查看
网友评论0