Navigation
Home
Menu bar style
Css styles
Games
Downloads
Creative CSS3 Animation Art 4 (HTML and CSS Tutorial)
In today's article, I,m going to cover some really cool effects you can use in your projects.
Demo
Css code (Demo)
<!-- Get Css Code Here @import url(http://fonts.googleapis.com/css?family=Raleway:400,500,700,900|Dosis:800|Playfair+Display:400,400italic,900italic|Lora:700|Syncopate:700|Roboto+Condensed:300italic|Oswald:700); @font-face { font-weight: normal; font-style: normal; font-family: 'codropsicons'; src:url('../fonts/codropsicons/codropsicons.eot'); src:url('../fonts/codropsicons/codropsicons.eot?#iefix') format('embedded-opentype'), url('../fonts/codropsicons/codropsicons.woff') format('woff'), url('../fonts/codropsicons/codropsicons.ttf') format('truetype'), url('../fonts/codropsicons/codropsicons.svg#codropsicons') format('svg'); } *, *:after, *:before { box-sizing: border-box; } .clearfix:before, .clearfix:after {display: table; content: ''; } .clearfix:after { clear: both; } body { background: #fff; color: #1e1a1b; font-weight: 500; font-size: 1em; font-family: 'Raleway', Arial, sans-serif; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; } a { outline: none; color: #dd3e62; text-decoration: none; } a:hover { color: #1e1a1b; } a:focus { outline: none; } .hidden { height: 0; width: 0; overflow: hidden; position: absolute; } /* Header */ .codrops-header { padding: 2em 1em 4em; text-align: center; height: calc(100vh - 40px); margin: 20px 20px 20px; overflow: hidden; position: relative; display: -webkit-flex; display: flex; -webkit-flex-direction: column; flex-direction: column; -webkit-align-items: center; align-items: center; -webkit-justify-content: center; justify-content: center; background: url(../img/mouse.svg) no-repeat left 50% bottom 40px; } .codrops-header::before, .codrops-header::after { content: 'Lorizzleipsizzledolorcrazy amizzlefoshizzleizzleelit Nullizzlesapienvelizzle aliquetvolutpatfoshizzlefo shizzlemynizzlegravidafoshizzle Lorizzleipsizzledolorcrazy amizzlefoshizzleizzleelit Nullizzlesapienvelizzle aliquetvolutpatfoshizzlefo shizzlemynizzlegravidafoshizzle'; font-size: 13em; line-height: 0.5; letter-spacing: -15px; z-index: 10; text-align: justify; pointer-events: none; position: absolute; background: #cdced2; color: rgba(255,255,255,0.15); font-family: 'Playfair Display', cursive; font-weight: 900; font-style: italic; z-index: -1; width: 120%; height: 120%; top: -10%; left: -10%; } .codrops-header h1 { margin: 0; padding: 0 0 1em; font-weight: 800; font-size: 2.75em; line-height: 1; text-transform: uppercase; letter-spacing: 3px; color: #49484a; } .codrops-header h1 span { font-style: italic; font-family: 'Playfair Display', serif; } .codrops-header h1 .sub { display: block; padding: 0.75em 0; color: #F9F9F9; font-weight: 400; font-size: 68%; text-transform: none; } /* Top Navigation Style */ .codrops-links { position: relative; display: inline-block; text-align: center; white-space: nowrap; -webkit-flex: none; flex: none; } .codrops-links::after { position: absolute; top: 0; left: 50%; width: 1px; height: 100%; background: #fff; content: ''; -webkit-transform: rotate3d(0,0,1,22.5deg); transform: rotate3d(0,0,1,22.5deg); } /* Grid */ .grid__item { height: calc(100vh - 40px); min-height: 460px; max-width: calc(100vw - 40px); background: #DDD; margin: 20px; padding: 100px 0; z-index: 1; position: relative; text-align: center; display: -webkit-flex; display: flex; -webkit-align-items: center; align-items: center; -webkit-justify-content: center; justify-content: center; -webkit-transform: translate3d(0,0,0); /* Solves Safari bug because of SVG clipping mask */ } /* Background colors */ .color-2 { background: #576b67; } -->
Css code (linkstyles)
<!-- Get Css Code Here /* General link styles */ .link { outline: none; text-decoration: none; position: relative; font-size: 8em; line-height: 1; color: #9e9ba4; display: inline-block; } /* Takiri */ .link--takiri { font-style: italic; font-family: 'Playfair Display', serif; font-weight: 700; font-size: 7em; padding: 0 10px 20px; -webkit-transition: color 0.5s; transition: color 0.5s; } .link--takiri:hover { color: #1e1a1b; } .link--takiri::before { content: ''; position: absolute; height: 36px; width: 120%; top: 50%; margin-top: -18px; left: -10%; z-index: -1; background: #F9F9F9; -webkit-transform: rotate3d(0,0,1,45deg) scale3d(0,1,1); transform: rotate3d(0,0,1,45deg) scale3d(0,1,1); -webkit-transition: -webkit-transform 0.5s; transition: transform 0.5s; } .link--takiri:hover::before { -webkit-transform: rotate3d(0,0,1,45deg) scale3d(1,1,1); transform: rotate3d(0,0,1,45deg) scale3d(1,1,1); } .link--takiri span { font-size: 20%; font-weight: 400; position: absolute; right: 15px; color: #e53369; bottom: 0; opacity: 0; -webkit-transform: translate3d(-10px,-10px,0); transform: translate3d(-10px,-10px,0); -webkit-transition: -webkit-transform 0.5s, opacity 0.5s; transition: transform 0.5s, opacity 0.5s; } .link--takiri:hover span { opacity: 1; -webkit-transform: translate3d(0,0,0); transform: translate3d(0,0,0); } -->
Html code
<!-- Get Html Code here <head> <link rel="stylesheet" type="text/css" href="css/demo.css" /> <link rel="stylesheet" type="text/css" href="css/linkstyles.css" /> </head> <body> <div class="container"> <div class="grid"> <div class="grid__item"> <a class="link link--takiri" href="#">Css Builder <span>The Art of Coding</span></a> </div> </div> </div> </body> -->
No comments:
Post a Comment
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment