Start Coding
All
Accordion
Buttons
Cards
Carousel
Css Animation
Hexagons
Hover
Layout
Loaders
Menu
Navigation
Slider
Tables
Wave
All
header
sidebar
Content-1
Content-2
Content-3
.container { display: grid; width: 750px; height: 600px; grid-template-columns: 200px 1fr 1fr; grid-template-rows: 80px 1fr 1fr 100px; grid-gap: 1rem; grid-template-areas: "header header header" "sidebar content-1 content-1" "sidebar content-2 content-3" "footer footer footer"; } .header { grid-area: header; } .sidebar { grid-area: sidebar; } .content-1 { grid-area: content-1; } .content-2 { grid-area: content-2; } .content-3 { grid-area: content-3; } .footer { grid-area: footer; grid-row: 4 / 5; grid-column: 1 / 4; } /* OTHER STYLES */ body { background-color: #3b404e; display: flex; justify-content: center; padding: 20px; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"; } .item { background-color: #1EAAFC; background-image: linear-gradient(130deg, #6C52D9 0%, #1EAAFC 85%, #3EDFD7 100%); box-shadow: 0 10px 20px rgba(0,0,0,0.19), 0 6px 6px rgba(0,0,0,0.23); color: #ffffff; border-radius: 4px; border: 6px solid #171717; display: flex; justify-content: center; align-items: center; font-size: 18px; font-weight: bold; } .header { background-color: #1EAAFC; background-image: linear-gradient(160deg, #6C52D9 0%, #9B8AE6 127%); } .sidebar { background-image: linear-gradient(203deg, #3EDFD7 0%, #29A49D 90%) } .content-1, .content-2, .content-3 { background-image: linear-gradient(130deg, #6C52D9 0%, #1EAAFC 85%, #3EDFD7 100%); } .footer { background-color: #6C52D9; background-image: linear-gradient(160deg, #6C52D9 0%, #9B8AE6 127%); }
45
CSS Grid Layout – with color
By:
rald_dev
button
Hover
APPLY
Try For Free
Let's Try Now
.flex{ display:flex; flex-wrap:wrap; justify-content: center; } .btn{ padding: 20px; } /* 1 button styles*/ .button { border: 2px solid black; border-radius: 7px; padding:5px 25px; text-decoration: none; display: inline-block; line-height:1.6; background: linear-gradient(to right, black 50%, white 50%); background-size: 200% 100%; background-position: right bottom; transition: all .5s ease-out; } .button:hover { background-position: left bottom; } .text { text-align: center; font-size: 20px; line-height: 1.6; color: black; transition: all .5s ease-out; } .text:hover { color: white; } /* 2 button styles*/ .button-an { display: inline-block; border-radius: 7px; background-color: #f4511e; border: none; color: #FFFFFF; text-align: center; font-size: 16px; padding: 15px 25px; width:75px; transition: all 0.5s; cursor: pointer; } .button-an span { cursor: pointer; display: inline-block; position: relative; transition: 0.5s; } .button-an span:after { content: '\00bb'; position: absolute; opacity: 0; top: 0; right: -20px; transition: 0.5s; } .button-an:hover span { padding-right: 25px; } .button-an:hover span:after { opacity: 1; right: 0; } /*3 btn styles*/ .primary-btn { text-decoration:none; width: 150px; position: relative; display: inline-block; border-radius: 30px; background-color: transparent; color: #212490; text-align: center; font-size: 18px; font-weight:600; padding: 12px 0; transition: all 0.3s; padding-right: 30px; box-shadow: 0 3px 20px 0 rgba(0, 0, 0, 0.06); border: 1px solid #212490; } .primary-btn .btn-icon { background-color: #212490; width: 80px; height: 45px; float: right; position: absolute; border-radius: 30px 30px 30px 0; right: 0px; top: 0px; transition: all 0.3s; } .btn-text { position: relative; z-index: 9999; } .btn-icon::after { content: ""; width: 0; height: 0; border-top: 45px solid #fff; border-right: 35px solid transparent; position: absolute; top: 0px; left: 0px; } .primary-btn:hover .btn-icon { width: 100%; border-radius: 30px; } .primary-btn:hover .btn-icon::after { display: none; opacity: 0.1; } .btn-icon i { position: absolute; right: 25px; top: 12px; color: #fff; } .primary-btn:hover { color: #fff!important; text-decoration:none; } /*4 button styles*/ .st-btn_main:focus,.st-btn_main:hover{ text-decoration:none; } .st-btn_main{ padding:0 27px; height:49px; display:inline-flex; justify-content:center; align-items:center; font-size:14px; font-weight:600; text-transform:capitalize; border-radius:7px; overflow:hidden; transform:translateZ(0); color:white; } .st-btn_main:before{ content:''; position:absolute; top:0; bottom:0; left:50%; width:450px; height:450px; margin:auto; background:#471fac; border-radius:50%; border:40px solid #0a064c; z-index:2; transform-origin:top center; transform:translateX(-50%) translateY(-5%) scale(.4); transition:transform .8s,border .7s; } .st-btn_main:after{ content:''; position:absolute; top:1px; right:1px; bottom:1px; left:1px; background:#E49349; border-radius:inherit; transform-origin:bottom center; transform:translateZ(0);overflow:hidden; } .st-btn_main p{ display:inline-block; overflow:hidden; } .st-btn_main p span{ position:relative; display:inline-block; transform:translateZ(0); z-index:3; } .st-btn_main:hover:before{ transform:translateX(-45%) translateY(0) scale(1); transform-origin:bottom center; border:60px solid #0a064c; transition:border .8s,-webkit-transform .9s; transition:transform .9s,border .8s; } /* 5 btn styles */ .glow-on-hover { padding: 15px 25px; text-decoration: none; border: none; outline: none; display: inline-block; color: #fff; background: #111; cursor: pointer; position: relative; z-index: 0; border-radius: 100px; } .glow-on-hover:before { content: ''; background: linear-gradient(45deg, #ff0000, #ff7300, #fffb00, #48ff00, #00ffd5, #002bff, #7a00ff, #ff00c8, #ff0000); position: absolute; top: -2px; left:-2px; background-size: 400%; z-index: -1; filter: blur(5px); width: calc(100% + 4px); height: calc(100% + 4px); animation: glowing 20s linear infinite; opacity: 0; transition: opacity .3s ease-in-out; border-radius: 100px; } .glow-on-hover:active { color: #000 } .glow-on-hover:active:after { background: transparent; } .glow-on-hover:hover:before { opacity: 1; } .glow-on-hover:after { z-index: -1; content: ''; position: absolute; width: 100%; height: 100%; background: #111; left: 0; top: 0; border-radius: 100px; } @keyframes glowing { 0% { background-position: 0 0; } 50% { background-position: 400% 0; } 100% { background-position: 0 0; } } @keyframes wobble{0%{transform:skewX(0deg)}25%{transform:skewX(10deg)}50%{transform:skewX(0deg)}75%{transform:skewX(-10deg)}100%{transform:skewX(0deg)}}
45
Animation: Buttons Hover
By:
rald_dev
:root { --sqrt3: 1.73205080757; /* Square root of 3 */ --time: 11; /* Duration of animation */ --gap: 1; /* Horizontal gap between hexagons */ --radius: 3; /* Radius of inscribed circle */ --Gap: var(--gap) / 2 * var(--sqrt3); /* Vertical gap between hexagons */ --Radius: 2 / var(--sqrt3) * var(--radius); /* Radius of circumcircle */ } @keyframes odd-animation { 0% { transform: translate(calc( 0.5 * var(--offset-x) ), calc( 0.5 * var(--offset-y) )) scale(0) } 33% { transform: translate(calc( 1 * var(--offset-x) ), calc( 1 * var(--offset-y) )) scale(1) } 66% { transform: translate(calc( 2 * var(--offset-x) ), calc( 2 * var(--offset-y) )) scale(1) } 100% { transform: translate(calc( 3 * var(--offset-x) ), calc( 3 * var(--offset-y) )) scale(0) } } @keyframes even-animation { 50% { transform: translate(calc( 1 * var(--offset-x) ), calc( 1 * var(--offset-y) )) scale(1) } 100% { transform: translate(calc( 2 * var(--offset-x) ), calc( 2 * var(--offset-y) )) scale(0) } } body { align-items: center; background-color: black; display: flex; height: 100vh; justify-content: center; overflow: hidden; margin: 0; } .hex { color: white; display: flex; font-size: 3vmin; height: calc(2em * var(--Radius)); width: calc(2em * var(--radius)); } .hex::before { border: calc(0.5em * var(--Radius)) solid transparent; border-left: 0; border-right: calc(1em * var(--radius)) solid currentColor; content: ""; height: var(--Radius); } .hex::after { border: calc(0.5em * var(--Radius)) solid transparent; border-left: calc(1em * var(--radius)) solid currentColor; border-right: 0; content: ""; height: var(--Radius); } .center { position: relative; } .odd, .even { --global-offset-x: calc( 0.5em * var(--gap) + var(--radius) * 1em); --global-offset-y: calc( 1.5em * var(--Radius) + var(--Gap) * 1em); animation: infinite cubic-bezier(.21, .61, .01, .89); position: absolute; transform: translate(0, 0) scale(0); } .odd { animation-duration: 11s; } .even { animation-duration: 7.333333333s; } .hex.first { animation-delay: -6.2857142857s; } .hex.second { animation-delay: -2.619047619s; } .hex.third { animation-delay: 1.0476190476s; } @supports (animation-delay: calc(1 * 1s)) and (animation-duration: calc(1 * 1s)) { .odd { animation-duration: calc(var(--time) * 1s); } .even { animation-duration: calc( var(--time) * 2 / 3 * 1s); } .hex.first { animation-delay: calc( var(--time) / -1.75 * 1s ); } .hex.second { animation-delay: calc( var(--time) * 1.25 / -5.25 * 1s ); } .hex.third { animation-delay: calc( var(--time) * -0.25 / -2.625 * 1s ); } } .hex.one { --offset-x: calc( var(--global-offset-x) * 1 ); --offset-y: calc( var(--global-offset-y) * -1 ); animation-name: odd-animation; bottom: 0; left: 0; } .hex.two { --offset-x: calc( var(--global-offset-x) * 1.5 ); --offset-y: calc( var(--global-offset-y) * -0.5 ); animation-name: even-animation; bottom: calc( var(--global-offset-y) * 0.5 ); left: calc( var(--global-offset-x) * 1.5 ); } .hex.three { --offset-x: calc( var(--global-offset-x) * 2 ); --offset-y: calc( var(--global-offset-y) * 0 ); animation-name: odd-animation; bottom: 0; right: 0; } .hex.four { --offset-x: calc( var(--global-offset-x) * 1.5 ); --offset-y: calc( var(--global-offset-y) * 0.5 ); animation-name: even-animation; top: calc( var(--global-offset-y) * 0.5 ); left: calc( var(--global-offset-x) * 1.5 ); } .hex.five { --offset-x: calc( var(--global-offset-x) * 1 ); --offset-y: calc( var(--global-offset-y) * 1 ); animation-name: odd-animation; top: 0; left: 0; } .hex.six { --offset-x: calc( var(--global-offset-x) * 0 ); --offset-y: calc( var(--global-offset-y) * 1 ); animation-name: even-animation; top: calc( var(--global-offset-y) * 1 ); left: 0; } .hex.seven { --offset-x: calc( var(--global-offset-x) * -1 ); --offset-y: calc( var(--global-offset-y) * 1 ); animation-name: odd-animation; top: 0; right: 0; } .hex.eight { --offset-x: calc( var(--global-offset-x) * -1.5 ); --offset-y: calc( var(--global-offset-y) * 0.5 ); animation-name: even-animation; top: calc( var(--global-offset-y) * 0.5 ); right: calc( var(--global-offset-x) * 1.5 ); } .hex.nine { --offset-x: calc( var(--global-offset-x) * -2 ); --offset-y: calc( var(--global-offset-y) * 0 ); animation-name: odd-animation; top: 0; right: 0; } .hex.ten { --offset-x: calc( var(--global-offset-x) * -1.5 ); --offset-y: calc( var(--global-offset-y) * -0.5 ); animation-name: even-animation; bottom: calc( var(--global-offset-y) * 0.5 ); right: calc( var(--global-offset-x) * 1.5 ); } .hex.eleven { --offset-x: calc( var(--global-offset-x) * -1 ); --offset-y: calc( var(--global-offset-y) * -1 ); animation-name: odd-animation; bottom: 0; right: 0; } .hex.twelve { --offset-x: calc( var(--global-offset-x) * 0 ); --offset-y: calc( var(--global-offset-y) * -1 ); animation-name: even-animation; bottom: calc( var(--global-offset-y) * 1 ); left: 0; }
45
Hexagon Animation
By:
rald_dev
body{ background: #373940; } .socket{ width: 200px; height: 200px; position: absolute; left: 50%; margin-left: -100px; top: 50%; margin-top: -100px; } .hex-brick{ background: #ABF8FF; width: 30px; height: 17px; position: absolute; top: 5px; animation-name: fade; animation-duration: 2s; animation-iteration-count: infinite; -webkit-animation-name: fade; -webkit-animation-duration: 2s; -webkit-animation-iteration-count: infinite; } .h2{ transform: rotate(60deg); -webkit-transform: rotate(60deg); } .h3{ transform: rotate(-60deg); -webkit-transform: rotate(-60deg); } .gel{ height: 30px; width: 30px; transition: all .3s; -webkit-transition: all .3s; position: absolute; top: 50%; left: 50%; } .center-gel{ margin-left: -15px; margin-top: -15px; animation-name: pulse; animation-duration: 2s; animation-iteration-count: infinite; -webkit-animation-name: pulse; -webkit-animation-duration: 2s; -webkit-animation-iteration-count: infinite; } .c1{ margin-left: -47px; margin-top: -15px; } .c2{ margin-left: -31px; margin-top: -43px; } .c3{ margin-left: 1px; margin-top: -43px; } .c4{ margin-left: 17px; margin-top: -15px; } .c5{ margin-left: -31px; margin-top: 13px; } .c6{ margin-left: 1px; margin-top: 13px; } .c7{ margin-left: -63px; margin-top: -43px; } .c8{ margin-left: 33px; margin-top: -43px; } .c9{ margin-left: -15px; margin-top: 41px; } .c10{ margin-left: -63px; margin-top: 13px; } .c11{ margin-left: 33px; margin-top: 13px; } .c12{ margin-left: -15px; margin-top: -71px; } .c13{ margin-left: -47px; margin-top: -71px; } .c14{ margin-left: 17px; margin-top: -71px; } .c15{ margin-left: -47px; margin-top: 41px; } .c16{ margin-left: 17px; margin-top: 41px; } .c17{ margin-left: -79px; margin-top: -15px; } .c18{ margin-left: 49px; margin-top: -15px; } .c19{ margin-left: -63px; margin-top: -99px; } .c20{ margin-left: 33px; margin-top: -99px; } .c21{ margin-left: 1px; margin-top: -99px; } .c22{ margin-left: -31px; margin-top: -99px; } .c23{ margin-left: -63px; margin-top: 69px; } .c24{ margin-left: 33px; margin-top: 69px; } .c25{ margin-left: 1px; margin-top: 69px; } .c26{ margin-left: -31px; margin-top: 69px; } .c27{ margin-left: -79px; margin-top: -15px; } .c28{ margin-left: -95px; margin-top: -43px; } .c29{ margin-left: -95px; margin-top: 13px; } .c30{ margin-left: 49px; margin-top: 41px; } .c31{ margin-left: -79px; margin-top: -71px; } .c32{ margin-left: -111px; margin-top: -15px; } .c33{ margin-left: 65px; margin-top: -43px; } .c34{ margin-left: 65px; margin-top: 13px; } .c35{ margin-left: -79px; margin-top: 41px; } .c36{ margin-left: 49px; margin-top: -71px; } .c37{ margin-left: 81px; margin-top: -15px; } .r1{ animation-name: pulse; animation-duration: 2s; animation-iteration-count: infinite; animation-delay: .2s; -webkit-animation-name: pulse; -webkit-animation-duration: 2s; -webkit-animation-iteration-count: infinite; -webkit-animation-delay: .2s; } .r2{ animation-name: pulse; animation-duration: 2s; animation-iteration-count: infinite; animation-delay: .4s; -webkit-animation-name: pulse; -webkit-animation-duration: 2s; -webkit-animation-iteration-count: infinite; -webkit-animation-delay: .4s; } .r3{ animation-name: pulse; animation-duration: 2s; animation-iteration-count: infinite; animation-delay: .6s; -webkit-animation-name: pulse; -webkit-animation-duration: 2s; -webkit-animation-iteration-count: infinite; -webkit-animation-delay: .6s; } .r1 > .hex-brick{ animation-name: fade; animation-duration: 2s; animation-iteration-count: infinite; animation-delay: .2s; -webkit-animation-name: fade; -webkit-animation-duration: 2s; -webkit-animation-iteration-count: infinite; -webkit-animation-delay: .2s; } .r2 > .hex-brick{ animation-name: fade; animation-duration: 2s; animation-iteration-count: infinite; animation-delay: .4s; -webkit-animation-name: fade; -webkit-animation-duration: 2s; -webkit-animation-iteration-count: infinite; -webkit-animation-delay: .4s; } .r3 > .hex-brick{ animation-name: fade; animation-duration: 2s; animation-iteration-count: infinite; animation-delay: .6s; -webkit-animation-name: fade; -webkit-animation-duration: 2s; -webkit-animation-iteration-count: infinite; -webkit-animation-delay: .6s; } @keyframes pulse{ 0%{ -webkit-transform: scale(1); transform: scale(1); } 50%{ -webkit-transform: scale(0.01); transform: scale(0.01); } 100%{ -webkit-transform: scale(1); transform: scale(1); } } @keyframes fade{ 0%{ background: #ABF8FF; } 50%{ background: #90BBBF; } 100%{ background: #ABF8FF; } } @-webkit-keyframes pulse{ 0%{ -webkit-transform: scale(1); transform: scale(1); } 50%{ -webkit-transform: scale(0.01); transform: scale(0.01); } 100%{ -webkit-transform: scale(1); transform: scale(1); } } @-webkit-keyframes fade{ 0%{ background: #ABF8FF; } 50%{ background: #389CA6; } 100%{ background: #ABF8FF; } }
45
Hexagonal Loading Animation
By:
rald_dev
Video
09 February 2019
Button - Fluent Design-Like
button
Shot
29 March 2019
Task List
task-list
app
Video
16 April 2019
Radio Buttons
Radio
Video
27 April 2019
User Interface - Flip Card
card
Video
14 July 2019
Link & Button - Shatter Effect
link
button
Video
18 August 2019
Switches
switch
Video
24 August 2019
Modal
modal
Video
26 August 2019
Modals (Modal v2)
modal
Video
29 August 2019
Off-Screen Menu
nav
menu
Video
06 November 2019
Parallax Tilt Effect Cards
card
tilt-effects
Video
11 November 2019
Plant App: Sign Up UI
app
animation
Video
23 December 2019
Block Revealing Effect
text
revealing-effect
dlar_dev-cards
@import url('https://fonts.googleapis.com/css2?family=Fira+Sans:wght@400;700&display=swap'); /* DEFAULTS */ /* ================================================================================= */ *, *::before, *::after { box-sizing: border-box; } body { display: grid; place-content: center; min-height: 100vh; font-family: "Fira Sans", -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; margin: 0; } /* CARDS */ /* ================================================================================= */ .cards { display: flex; align-items: center; padding: 40px; overflow-x: scroll; min-height: 100vh; } .card { min-width: 300px; max-width: 300px; height: 400px; margin-left: -80px; border-radius: 40px; padding: 30px; box-shadow: -4px 4px 26px 2px hsla(184, 50%, 20%, .1); background: linear-gradient(to right bottom, hsl(0, 0%, 98%), hsl(0, 0%, 96%)); transition: all .3s; position: relative; } .card:first-child { margin-left: 0; } .card:hover, .card:focus-within { transform: translateY(-20px) } .card:hover+.card, .card:focus-within+.card { transform: translateX(80px); } .card-info { margin-bottom: 14px; } .card-info>span:first-child { margin-right: 6px; } .card-grad--video { color: transparent; background: linear-gradient(to right, hsl(91, 96%, 50%), hsl(159, 96%, 50%)); background-clip: text; } .card-grad--shot { color: transparent; background: linear-gradient(to right, hsl(294, 96%, 50%), hsl(201, 96%, 50%)); background-clip: text; } .card-info>span:last-child { color: hsl(0, 0%, 70%); } .card-heading { font-size: 1.6em; } .card-heading a:link { color: hsl(30, 50%, 40%); font-weight: bold; text-decoration: none; } .card-tags { display: flex; position: absolute; bottom: 50px; left: 30px; } .card-tag { color: hsl(0, 0%, 60%); padding: 5px 12px; border: 2px solid hsl(30, 40%, 70%); border-radius: 100px; text-transform: uppercase; margin-right: 10px; font-size: .9em; } /* ABS */ /* ================================================================================= */ .abs-site-link { position: fixed; bottom: 20px; left: 20px; color: hsla(0, 0%, 0%, .6); font-size: 16px; font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Open Sans', sans-serif; }
44
Cards Animation
By:
rald_dev
Navigation CSS Menu
Home
About
Blog
Portefolio
Contact
nav { margin: 27px auto 0; position: relative; width: 590px; height: 50px; background-color: #34495e; border-radius: 8px; font-size: 0; } nav a { line-height: 50px; height: 100%; font-size: 15px; display: inline-block; position: relative; z-index: 1; text-decoration: none; text-transform: uppercase; text-align: center; color: white; cursor: pointer; } nav .animation { position: absolute; height: 100%; top: 0; z-index: 0; transition: all .5s ease 0s; border-radius: 8px; } a:nth-child(1) { width: 100px; } a:nth-child(2) { width: 110px; } a:nth-child(3) { width: 100px; } a:nth-child(4) { width: 160px; } a:nth-child(5) { width: 120px; } nav .start-home, a:nth-child(1):hover~.animation { width: 100px; left: 0; background-color: #1abc9c; } nav .start-about, a:nth-child(2):hover~.animation { width: 110px; left: 100px; background-color: #e74c3c; } nav .start-blog, a:nth-child(3):hover~.animation { width: 100px; left: 210px; background-color: #3498db; } nav .start-portefolio, a:nth-child(4):hover~.animation { width: 160px; left: 310px; background-color: #9b59b6; } nav .start-contact, a:nth-child(5):hover~.animation { width: 120px; left: 470px; background-color: #e67e22; } body { font-size: 12px; font-family: sans-serif; background: #2c3e50; } h1 { text-align: center; margin: 40px 0 40px; text-align: center; font-size: 30px; color: #ecf0f1; text-shadow: 2px 2px 4px #000000; font-family: 'Cherry Swash', cursive; } p { position: absolute; bottom: 20px; width: 100%; text-align: center; color: #ecf0f1; font-family: 'Cherry Swash',cursive; font-size: 16px; } span { color: #2BD6B4; }
44
Navigation Menu
By:
rald_dev
:hover, please
Now here
Around and inside I
Around and inside II
:hover with animation
*, *:after, *:before { box-sizing: border-box; -moz-box-sizing: border-box; } * {margin:0;padding:0;border:0 none;position: relative; outline: none; } html, body { background: #004050; font-family: Quando; font-weight: 300; width: 100%; } h2, h3 { background: #0D757D; width: 100%; min-height: 200px; line-height: 200px; font-size: 3rem; font-weight: normal; text-align: center; color: rgba(0,0,0,.4); margin: 3rem auto 0; } .uno {background: #ff5e33;} .dos.bis {background: #85144B;} .dos {background: #FADD40;} h3 {background: #2B5B89;} h2 > a, h3 > a { text-decoration: none; color: rgba(0,0,0,.4); z-index: 1; } h2 > a:before { content: ""; position: absolute; width: 100%; height: 3px; bottom: 0; left: 0; background: #9CF5A6; visibility: hidden; border-radius: 5px; transform: scaleX(0); transition: .25s linear; } h2 > a:hover:before, h2 > a:focus:before { visibility: visible; transform: scaleX(1); } .uno a:before { background: rgba(0,0,0,0); box-shadow: 0 0 10px 2px #ffdb00; } .dos > a:after { content: ""; position: absolute; width: 100%; height: 7px; border: 1px solid #000; bottom: -2px; left: 0; background: #fff; border-radius: 5px; opacity: 0; transform: scalex(0); transition: .5s; } .dos.bis > a:after { opacity: .05; transform: scalex(1); } .dos:hover > a:after { opacity: .15; transform: scalex(1); } .dos.bis > a:before { background: rgba(0,0,0,0); box-shadow: 0 0 10px 2px #FADD40; } .dos > a:before { background: rgba(0,0,0,0); box-shadow: 0 0 10px 2px #FF5E33; } h3 > a:before { content: ""; background: #7FDBFF; position: absolute; width: 100%; height: 5px; bottom: 0; left: 0; border-radius: 5px; transform: scaleX(0); animation: 1.4s forwards no-hover-v linear; animation-fill-mode: forwards; z-index: -1; } h3 > a:hover:before, h3 > a:focus:before { animation: .5s forwards hover-v linear; animation-fill-mode: forwards; } @keyframes hover-v { 0% { transform: scaleX(0); height: 5px; } 45% { transform: scaleX(1.05); height: 5px; } 55% {height: 5px;} 100% { transform: scaleX(1.05); height: 3.8rem; } } @keyframes no-hover-v { 0% { transform: scaleX(1.05); height: 3.8rem; } 45% {height: 5px;} 55% { transform: scaleX(1.05); height: 5px; opacity: 1; } 100% { transform: scaleX(0); height: 5px; opacity: .02; } } p {padding: .5rem;} p a {color: rgba(255,255,255,.5)}
43
text-decoration: underline animated
By:
rald_dev
.back { position: fixed; padding: 0; margin: 0; top: 0; left: 0; width: 100%; height: 100%; background: white; animation-name: backdiv; animation-duration: 1s; animation-iteration-count: infinite; } .heart { position: absolute; margin: auto; top: 0; right: 0; bottom: 0; left: 0; background-color: pink; height: 50px; width: 50px; transform: rotate(-45deg); animation-name: beat; animation-duration: 1s; animation-iteration-count: infinite; } .heart::after { background-color: pink; content: ""; border-radius: 50%; position: absolute; width: 50px; height: 50px; top: 0px; left: 25px; } .heart::before { background-color: pink; content: ""; border-radius: 50%; position: absolute; width: 50px; height: 50px; top: -25px; left: 0px; } @keyframes backdiv { 50% { background: #ffe6f2; } } @keyframes beat { 0% { transform: scale(1) rotate(-45deg); } 50% { transform: scale(0.6) rotate(-45deg); } }
43
Heart animation
By:
rald_dev
Home
About
Info
Contact
/*reset */ body { margin: 0; padding: 0; background: #232323; color: #cdcdcd; font-family: "Avenir Next", "Avenir", sans-serif; } #hamburger { display: block; position: relative; top: 50px; left: 50px; z-index: 1; -webkit-user-select: none; user-select: none; } #hamburger a { text-decoration: none; color: #232323; transition: color 0.3s ease; } #hamburger a:hover { color: tomato; } #hamburger input { display: block; width: 40px; height: 32px; position: absolute; top: -7px; left: -5px; cursor: pointer; opacity: 0; /*hiding menu*/ z-index: 2; /*place it over the hamburger*/ -webkit-touch-callout: none; } /*span hamburger*/ #hamburger span { display: block; width: 33px; height: 4px; margin-bottom: 5px; position: relative; background: #cdcdcd; border-radius: 3px; z-index: 1; transform-origin: 4px 0px; transition: transform 0.5s cubic-bezier(0.77, 0.2, 0.05, 1), background 0.5s cubic-bezier(0.77, 0.2, 0.05, 1), opacity 0.55s ease; } #hamburger span:first-child { transform-origin: 0% 0%; } #hamburger span:nth-last-child(2) { transform-origin: 0% 100%; } /*transform to cross mark*/ #hamburger input:checked ~ span { opacity: 1; transform: rotate(45deg) translate(-2px, -1px); background: #232323; } /* hinding middle bar */ #hamburger input:checked ~ span:nth-last-child(3) { opacity: 0; transform: rotate(0deg) scale(0.2, 0.2); } /* last bar opposite direction */ #hamburger input:checked ~ span:nth-last-child(2) { transform: rotate(-45deg) translate(0, -1px); } /* make the absolute positioned, at the top of the screen */ #menu { position: absolute; width: 300px; margin: 50px; padding-top: 125px; background: #ededed; list-style-type: none; -webkit-font-smoothing: antialiased; /* to stop flickering of text in safari */ transform-origin: 0% 0%; transform: translate(-100%, 0); transition: transform 0.5s cubic-bezier(0.77, 0.2, 0.05, 1); } #menu li { padding: 10px 0; font-size: 22px; } /* slide from the left */ #hamburger input:checked ~ ul { transform: none; }
43
Hamburger Menu v2
By:
rald_dev
header
nav
section
/* Note: This example only works with Windows Insider Preview Builds 16237+ or the Fall Creators Update. */ body { font-family: segoe-ui_normal,Segoe UI,Segoe,Segoe WP,Helvetica Neue,Helvetica,sans-serif; display: grid; grid-template-areas: "header header header" "nav section aside" "footer footer footer"; grid-template-rows: 80px 1fr 50px; grid-template-columns: 15% 1fr 18%; grid-gap: 5px; height: 100vh; margin: 10px; } header { background: #707070; grid-area: header; } nav { background: #C9BFBF; grid-area: nav; } section { background: #ABABAB; grid-area: section; } aside { background: #C9C9C9; grid-area: aside; } footer { background: #707070; grid-area: footer; } header, nav, section, aside, footer { padding: 5px; }
43
CSS Grid Layout
By:
rald_dev
header
nav
section
/* Note: This example only works with Windows Insider Preview Builds 16237+ or the Fall Creators Update. */ body { font-family: segoe-ui_normal,Segoe UI,Segoe,Segoe WP,Helvetica Neue,Helvetica,sans-serif; display: grid; grid-template-areas: "header header header" "nav section aside" "footer footer footer"; grid-template-rows: 80px 1fr 50px; grid-template-columns: 15% 1fr 18%; grid-gap: 5px; height: 100vh; margin: 10px; } header { background: #707070; grid-area: header; } nav { background: #C9BFBF; grid-area: nav; } section { background: #ABABAB; grid-area: section; } aside { background: #C9C9C9; grid-area: aside; } footer { background: #707070; grid-area: footer; } header, nav, section, aside, footer { padding: 5px; }
43
CSS Grid Layout
By:
rald_dev
Home
Chat
Products
Exit
body { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 100vh; margin: 0; padding: 0; box-sizing: border-box; font-family: sans-serif; background: #111111; color: #fff; } .card { background: #483d8b; width: 300px; height: 160px; display: flex; align-items: center; justify-content: center; border-radius: 20px; } .menu li { display: flex; align-items: center; justify-content: center; border-radius: 10px; margin-right: 40px; list-style: none; width: 180px; height: 30px; cursor: pointer; } .item a { color: white; } ion-icon { position: relative; left: -50px; color: #fff; font-size: 18px; } a { position: absolute; margin-left: 12px; text-decoration: none; color: #000; } li.item:hover { background: #7b68ee; border: 1px solid #fff; color: white; margin-left: 28px; transition: 0.4s; } p { font-size: 12px; }
43
Button hover with card
By:
rald_dev
Previous
1
2
3
4
5
6
…
10
Next