hover.css一百多种按钮悬浮动画效果代码集合
代码语言:html
所属分类:悬停
代码描述:hover.css一百多种按钮悬浮动画效果代码集合
下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开
<!DOCTYPE html> <html lang="zh"> <head> <meta charset="utf-8"> <title></title> <style> @import url(https://fonts.googleapis.com/css?family=Roboto); body { margin: 0 auto; max-width: 800px; padding: 40px 20px 20px 20px; font-family: sans-serif; color: #333; line-height: 140%; } .browsehappy { position: absolute; top: 0; right: 0; left: 0; padding: 1em; background: black; color: white; text-align: center; } img { border: none; } small { display: block; } p, [class^="hvr-"] { font-family: 'Roboto', sans-serif; } [class^="hvr-"] { /*display: inline-block;*/ /*vertical-align: middle;*/ margin: .4em; padding: 1em; cursor: pointer; background: #e1e1e1; text-decoration: none; color: #666; /* Prevent highlight colour when element is tapped */ -webkit-tap-highlight-color: rgba(0,0,0,0); } .aligncenter { text-align: center; } .sup { vertical-align: super; margin-left: -1em; padding: .21875em; line-height: 100%; font-size: .21875em; border: #eee solid 1px; border-radius: 4px; color: inherit; } .sup:hover { background: #eee; } a { color: #2098D1; text-decoration: none; } .footer a:hover, .tutorial:hover { color: #207AD1; } .tutorial { display: inline-block; font-size: .8em; font-weight: bold; } .tutorial:hover, .tutorial:focus, .tutorial:active { text-decoration: none; } .intro { max-width: 680px; margin: 20px auto 0 auto; } .button.cta { display: inline-block; position: relative; margin: 1.2em 0 1em 0; padding: 1em; background: #2098D1; border: none; text-decoration: none; font-weight: 700; color: white; } .effects { margin-top: 6em; } h1 { text-align: center; font-size: 4em; } h2 { margin-top: 2em; } .about { border-top: #333 solid 2px; border-bottom: #333 solid 2px; } .footer { overflow: hidden; wi.........完整代码请登录后点击上方下载按钮下载查看
网友评论0