Start Coding
All
Accordion
Buttons
Cards
Carousel
Css Animation
Hexagons
Hover
Layout
Loaders
Menu
Navigation
Slider
Tables
Wave
All
Button
button { background: #fbca1f; font-family: inherit; padding: 0.6em 1.3em; font-weight: 900; font-size: 18px; border: 3px solid black; border-radius: 0.4em; box-shadow: 0.1em 0.1em; cursor: pointer; } button:hover { transform: translate(-0.05em, -0.05em); box-shadow: 0.15em 0.15em; } button:active { transform: translate(0.05em, 0.05em); box-shadow: 0.05em 0.05em; }
323
Button
By:
pixeldev
.logos-slider { display: flex; flex-wrap: nowrap; overflow: hidden; position: relative; -webkit-mask-image: linear-gradient(90deg,rgba(0,0,0,0) 0,#000 15%,#000 85%,rgba(0,0,0,0) 100%); mask-image: linear-gradient(90deg,rgba(0,0,0,0) 0,#000 15%,#000 85%,rgba(0,0,0,0) 100%); } .logos-slider-container { display: flex; align-items: center; justify-content: center; gap: 5rem; animation: slide 30s linear infinite; } .logos-slider-container img { width:150px; max-width: 150px; } @keyframes slide { 0% { transform: translate3d(0,0,0) } 100% { transform: translate3d(-100%,0,0) } } h1 { text-align: center; font-family: 'Lato'; color: #3D4A54; } .card { background: white; padding: 2rem; border-radius: 1rem; max-width: 900px; margin: 0 auto; box-shadow: 0px 3px 8px rgb(61 74 84 / 10%), 0px 3px 12px rgb(61 74 84 / 6%) } body { padding-top: 4rem; background: #eef2f5; display:flex; align-items: center; flex-direction: column; justfiy-content: center; }
97
Home Pure CSS Logo Slider Responsive
By:
pixeldev
.card { width: 190px; height: 254px; background: white; border-radius: 10px; transition: border-radius 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275); } .shadow { box-shadow: inset 0 -3em 3em rgba(0,0,0,0.1), 0 0 0 2px rgb(190, 190, 190), 0.3em 0.3em 1em rgba(0,0,0,0.3); }
64
Card
By:
pixeldev
CSS-only Carousel
This carousel is created with HTML and CSS only.
Go to last slide
Go to next slide
Go to previous slide
Go to next slide
Go to previous slide
Go to next slide
Go to previous slide
Go to first slide
@keyframes tonext { 75% { left: 0; } 95% { left: 100%; } 98% { left: 100%; } 99% { left: 0; } } @keyframes tostart { 75% { left: 0; } 95% { left: -300%; } 98% { left: -300%; } 99% { left: 0; } } @keyframes snap { 96% { scroll-snap-align: center; } 97% { scroll-snap-align: none; } 99% { scroll-snap-align: none; } 100% { scroll-snap-align: center; } } body { max-width: 37.5rem; margin: 0 auto; padding: 0 1.25rem; font-family: 'Lato', sans-serif; } * { box-sizing: border-box; scrollbar-color: transparent transparent; /* thumb and track color */ scrollbar-width: 0px; } *::-webkit-scrollbar { width: 0; } *::-webkit-scrollbar-track { background: transparent; } *::-webkit-scrollbar-thumb { background: transparent; border: none; } * { -ms-overflow-style: none; } ol, li { list-style: none; margin: 0; padding: 0; } .carousel { position: relative; padding-top: 75%; filter: drop-shadow(0 0 10px #0003); perspective: 100px; } .carousel__viewport { position: absolute; top: 0; right: 0; bottom: 0; left: 0; display: flex; overflow-x: scroll; counter-reset: item; scroll-behavior: smooth; scroll-snap-type: x mandatory; } .carousel__slide { position: relative; flex: 0 0 100%; width: 100%; background-color: #f99; counter-increment: item; } .carousel__slide:nth-child(even) { background-color: #99f; } .carousel__slide:before { content: counter(item); position: absolute; top: 50%; left: 50%; transform: translate3d(-50%,-40%,70px); color: #fff; font-size: 2em; } .carousel__snapper { position: absolute; top: 0; left: 0; width: 100%; height: 100%; scroll-snap-align: center; } @media (hover: hover) { .carousel__snapper { animation-name: tonext, snap; animation-timing-function: ease; animation-duration: 4s; animation-iteration-count: infinite; } .carousel__slide:last-child .carousel__snapper { animation-name: tostart, snap; } } @media (prefers-reduced-motion: reduce) { .carousel__snapper { animation-name: none; } } .carousel:hover .carousel__snapper, .carousel:focus-within .carousel__snapper { animation-name: none; } .carousel__navigation { position: absolute; right: 0; bottom: 0; left: 0; text-align: center; } .carousel__navigation-list, .carousel__navigation-item { display: inline-block; } .carousel__navigation-button { display: inline-block; width: 1.5rem; height: 1.5rem; background-color: #333; background-clip: content-box; border: 0.25rem solid transparent; border-radius: 50%; font-size: 0; transition: transform 0.1s; } .carousel::before, .carousel::after, .carousel__prev, .carousel__next { position: absolute; top: 0; margin-top: 37.5%; width: 4rem; height: 4rem; transform: translateY(-50%); border-radius: 50%; font-size: 0; outline: 0; } .carousel::before, .carousel__prev { left: -1rem; } .carousel::after, .carousel__next { right: -1rem; } .carousel::before, .carousel::after { content: ''; z-index: 1; background-color: #333; background-size: 1.5rem 1.5rem; background-repeat: no-repeat; background-position: center center; color: #fff; font-size: 2.5rem; line-height: 4rem; text-align: center; pointer-events: none; } .carousel::before { background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpolygon points='0,50 80,100 80,0' fill='%23fff'/%3E%3C/svg%3E"); } .carousel::after { background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpolygon points='100,50 20,100 20,0' fill='%23fff'/%3E%3C/svg%3E"); }
51
Pure css carousel
By:
pixeldev
Front
body{ width: 1366px; height:1366px; background:; } .first{ width: 475px; height: 217px; background: green; transform: rotate(90deg) rotateX(90deg) rotateZ(0deg) translate3d(4px,0px,-87px); overflow: hidden; visibility: hidden; position: absolute; transition: all 0.5s ease; } .first2{ width: 475px; height: 217px; background: green; transform: rotate(90deg) rotateX(90deg) rotateZ(0deg) translate3d(4px,0px,-238px); overflow: hidden; visibility: hidden; position: absolute; transition: all 0.5s ease; } .second{ width: 500px; height: 216px; background: red; transform: rotate(-60deg); overflow: hidden; } .third{ width: 500px; height: 216px; background:orange; background-position: center; background-size: 80%; transform: rotate(-60deg); overflow: hidden; visibility: visible; } .sides{ width: 150px; height: 125px; background: gray; position: absolute; } .s1{ transform: rotateX(60deg) translate3d(0px,31px,-162px); background: red; } .sides.s2 { transform: rotateX(-60deg)translate3d(0px, 31px, -54px); background: blue; } .s3{ transform: rotateX(60deg) translate3d(0px, 32px, 54px); background: green; } .s4{ transform: rotateX(-60deg) translate3d(0px, 32px, 161px); background: #9C27B0; } .s5{ background: gray; transform: translate3d(0px, 62px, 108px); } .s6{ background: darkgray; } .sides.S6{ transform: translate3d(0px, 62px, -109px); } @keyframes rotate{ 0%{transform: rotateY(0deg) rotateX(0deg) ;} 100%{transform: rotateY(360deg) rotateX(360deg);} } .main{ width: 250px; height: 250px; perspective: 800px; } .cube{ width: 150px; height: 250px; margin-left: 250px; background:; transform-style: preserve-3d; transform: rotateY(70deg); animation: rotate 15s linear infinite; }
50
3D Hexagon Animation
By:
rald_dev
text reveal
body { background-color: #bedcff; font-family: Helvetica; font-weight: bold; } .container { padding: 100px 20px 0; max-width: 960px; margin: 0 auto; } h1 { margin: 0; text-align: center; font-size: 200px; overflow: hidden; line-height: 1; } h1 span { display: block; animation: reveal 1.5s cubic-bezier(0.77, 0, 0.175, 1) 0.5s; } @keyframes reveal { 0% { transform: translate(0,100%); } 100% { transform: translate(0,0); } }
46
Text reveal animation
By:
rald_dev
Name
Known As
Year
Bruce Wayne
Batman
1939
Clark Kent
Superman
1938
Tony Stark
Iron Man
1963
Peter Parker
Spider-Man
1962
Matt Murdock
Daredevil
1964
/* Modifier */ .c-tbl--purple th { background-color: hsl(330, 50%, 40%) } .c-tbl--purple td { border-color: hsl(330, 40%, 80%); } .c-tbl--purple tr th:last-of-type { border-inline-color: hsl(330, 50%, 40%); } .c-tbl--purple tr th:first-of-type { border-inline-start-color: hsl(330, 50%, 40%); } @media (hover: hover) { .c-tbl--purple tr:hover td { background-color: hsl(330, 60%, 95%); } } /** * c-tbl.css * @version 1.0.0 * @description Generic Table Component */ :where(.c-tbl) { border-collapse: separate; border-spacing: 0; table-layout: auto; width: 99.9%; } :where(.c-tbl thead th) { background-color: hsl(200, 60%, 40%); border-style: solid; border-block-start-width: 0; border-inline-end-width: 1px; border-block-end-width: 0; border-inline-start-width: 0; color: hsl(200, 60%, 99%); padding-block: 1.25ch; padding-inline: 2ch; text-transform: uppercase; } :where(.c-tbl td) { background-color: #FFF; border-color: hsl(200, 60%, 80%); border-style: solid; border-block-start-width: 0; border-inline-end-width: 1px; border-block-end-width: 1px; border-inline-start-width: 0; padding-block: 1.25ch; padding-inline: 2ch; } /* Because of `border-collapse: separate`, we need to */ :where(.c-tbl tr td:first-of-type) { border-inline-start-width: 1px; } /* For header-cells, we set the `border-color` of the first and last border to it's `background-color` */ :where(.c-tbl tr th:last-of-type) { border-inline-color: hsl(200, 60%, 40%); } :where(.c-tbl tr th:first-of-type) { border-inline-start-color: hsl(200, 60%, 40%); } /* Set `border-radius` on first and last rows, on first and last cell */ :where(.c-tbl thead th:first-of-type) { border-start-start-radius: 0.5rem; } :where(.c-tbl thead th:last-of-type) { border-start-end-radius: 0.5rem; } :where(.c-tbl tbody tr:last-of-type td:first-of-type) { border-end-start-radius: 0.5rem; } :where(.c-tbl tr:last-of-type td:last-of-type) { border-end-end-radius: 0.5rem; } /* ===== HOVER ===== */ @media (hover: hover) { :where(.c-tbl) tr:hover td { background-color: hsl(200, 60%, 95%); } } /* For demo */ body { font-family: ui-sans-serif, sans-serif; margin-block: 2ch; margin-inline: auto; max-inline-size: 64rem; padding-inline: 2ch; } button { padding: 1ch 2ch; }
37
Basic Table with rounded corners
By:
pixeldev
Made by @_dlarskie
now
12:42
Saturday, January 4
slide to unlock
86%
/* No images in this pen :D */ @font-face { font-family: Helvetica; src: url(https://s3-us-west-2.amazonaws.com/s.cdpn.io/164210/HelveticaNeue-UltraLight.otf) format('TrueType'); font-weight: 300; } body { font-family: 'Helvetica', sans-serif; background: #f5f5f5; color: #333; letter-spacing: 1px; } html,body { height: 100%; margin: 0; padding: 0; overflow: hidden; } #wrapper { height: 520px; width: 800px; margin-left: -400px; margin-top: -260px; position: absolute; perspective: 6000px; top: 50%; left: 50%; } #iphone { height: 760px; width: 372px; border-radius: 50px; position: absolute; background: none; box-shadow: none; left: 206px; top: -140px; transform: rotateX(54deg) rotateZ(-46deg); transform-style: preserve-3d; } #side { background: #CDD0D5; width: 393px; height: 780px; border-top-left-radius: 77px; border-bottom-left-radius: 49px; border-bottom-right-radius: 86px; border-top-right-radius: 70px; position: absolute; top: 0px; left: -15px; box-shadow: inset #3D3E42 0 0 15px 9px; transform: translateZ(-10px); } #front { width: 362px; height: 750px; border-radius: 49px; position: absolute; background-image: -webkit-linear-gradient(-27deg,#444,#000 10%, #000 42%, #333, #000 57%, #000 91%, #444); left: 5px; top: 5px; box-shadow: inset #000 0 0 0 4px, #555 0px 0 3px 0px, #222 -3px 2px, #000 -5px 5px, #E0E0E0 -7px 6px 1px, #6D6D6D -7px 6px 9px; transform: translateZ(1px); } #front-cover { width: 344px; height: 734px; background: #000; border-radius: 39px; position: absolute; top: 8px; left: 9px; } #home { position: absolute; width: 52px; height: 52px; border-radius: 50%; background: -webkit-linear-gradient(32deg,#666,#000,#666); top: 684px; left: 160px; } #home div { background: #000; border-radius: 50%; width: 46px; height: 46px; position: absolute; left: 3px; top: 3px; } #camera { width: 11px; height: 11px; background: #000; position: absolute; top: 35px; left: 124px; border-radius: 50%; box-shadow: inset #666 -5px 2px 9px -2px; } #camera div { width: 6px; height: 6px; background: radial-gradient(#E1E4F5,#0D2B69 33%); background-position: -1px -1px; position: absolute; top: 3px; left: 3px; border-radius: 50%; } #speaker { width: 50px; height: 4px; border-radius: 2px; background: #555; position: absolute; top: 39px; left: 156px; box-shadow: inset #222 0 0px 4px; } #volume { height: 128px; width: 11px; border-radius: 10px; position: absolute; background: #F9F9FA; top: 171px; left: -20px; transform: rotateY(95deg); transform-style: preserve-3d; box-shadow: inset #292A2F 4px 0 8px 1px, #D5D5D5 -1px 0px 2px; } #volume div { width: 8px; height: 55px; background: #BBBCC0; border-radius: 10px; position: absolute; box-shadow: #eee -1px 1px, #777 -1px 3px, #505057 -3px 3px, inset #909197 -3px 0 3px; } #volume div:first-child { top: 2px; left: 4px; } #volume div:last-child { top: 69px; left: 4px; } #toggler { height: 34px; width: 8px; border-radius: 10px; position: absolute; background: #2B2C31; top: 105px; left: -20px; transform: rotateY(95deg); transform-style: preserve-3d; box-shadow: inset #292A2F 4px 0 8px 1px, #D5D5D5 -1px 0px 2px; } #toggler div { width: 4px; height: 31px; background: #BBBCC0; border-radius: 10px; position: absolute; box-shadow: #eee -1px 1px, #777 -2px 3px, #505057 -3px 3px, inset #909197 -3px 0 3px; top: -1px; left: 3px; } #aux { width: 19px; height: 19px; background: #3B3B3B; border-radius: 50%; transform: rotateX(90deg) translateZ(1px); transform-style: preserve-3d; position: absolute; top: 766px; left: 45px; box-shadow: inset #000 6px -3px 10px 1px, #C7C7C7 1px 0px 1px; } #lightning { width: 48px; height: 12px; border-radius: 10px; background: #3F3F3F; transform: rotateX(90deg) translate3d(0px,1px,0px); top: 771px; position: absolute; left: 139px; box-shadow: inset #8E8F94 -1px 1px 0px 2px, #515258 0px 0px 0 1px, inset #000 0 -3px 10px, #DADADA 1px 0 0 1px; } #bottom-speaker { position: absolute; transform: rotateX(90deg); top: 781px; left: 70px; } #bottom-speaker div { width: 8px; height: 8px; border-radius: 50%; background: #6C6D72; position: absolute; box-shadow: inset #000 1px -1px 4px 1px, #DADADA 1px 0px; } #bottom-speaker div:nth-child(2) { left: 150px; } #bottom-speaker div:nth-child(3) { left: 162px; } #bottom-speaker div:nth-child(4) { left: 174px; } #bottom-speaker div:nth-child(5) { left: 186px; } #bottom-speaker div:nth-child(6) { left: 198px; } #bottom-speaker div:nth-child(7) { left: 210px; } #skrews { position: absolute; top: 780px; left: 120px; transform: rotateX(90deg); } #skrews div { position: absolute; width: 8px; height: 8px; background: rgb(95, 92, 92); border-radius: 50%; top: 0; z-index: 4; box-shadow: inset #999AA0 0 0 0px 2px, #444 1px 0px; } #skrews div:last-child { left: 70px; } #lines { position: absolute; top: 82px; left: -32px; display: none; } #lines > div:last-child { top: 634px; } #lines div { width: 7px; height: 11px; position: absolute; transform-style: preserve-3d; transform-origin: 100% 100%; } #lines > div { background: -webkit-linear-gradient(right,#393A3C,#5A595E); transform: rotateY(90deg); } #lines > div > div { background: -webkit-linear-gradient(right,#5A595E,#87868A); transform: rotateY(17deg); left: -6px; } #lines > div > div > div { background: -webkit-linear-gradient(right,#87868A,#A8A6AD); transform: rotateY(17deg); left: -6px; } #shadow { width: 350px; height: 755px; background: black; position: absolute; top: 5px; left: 0; transform: translateZ(-17px); transform-style: preserve-3d; box-shadow: #000 0 0 10px 15px; opacity: 0.4; border-top-left-radius: 76px; border-top-right-radius: 200px; border-bottom-left-radius: 40px; border-bottom-right-radius: 56px; } #screen { background: -webkit-linear-gradient(#A1E5E5,#1987AA); width: 336px; height: 589px; position: absolute; top: 80px; left: 13px; font-weight: 300; color: #fff; background-size: 200% 100%; overflow: hidden; } #time { font-size: 86px; left: 57px; top: 37px; position: absolute; } #date { font-size: 20px; left: 85px; top: 130px; position: absolute; } #bottom { width: 37px; height: 7px; border-radius: 5px; background: #2AB1DB; position: absolute; top: 573px; left: 149px; } #top { width: 37px; height: 7px; border-radius: 5px; background: #D7FFFF; position: absolute; top: 10px; left: 149px; } #slide { position: absolute; top: 489px; left: 88px; font-size: 28px; color: #2AB1DB; background: -webkit-linear-gradient(left,#2EC4F3 30%,#fff,#2EC4F3 70%); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-size: 350px; animation: slide 5s linear infinite; } @keyframes slide { 0% { background-position: 100px 0; } 40% { background-position: 440px 0; } 100% { background-position: 440px 0; } } #slide div { transform: rotate(135deg); border-left: 2px solid #2AB1DB; border-top: 2px solid #2AB1DB; width: 15px; height: 15px; position: absolute; left: -29px; top: 10px; } #signal { position: absolute; top: 9px; left: 7px; } #signal div { width: 6px; height: 6px; border-radius: 50%; background: #fff; border: 1px solid #fff; position: absolute; } #signal div:nth-child(2) { left: 9px; } #signal div:nth-child(3) { left: 18px; } #signal div:nth-child(4) { left: 27px; } #signal div:nth-child(5) { left: 36px; background: none; } #battery { position: absolute; top: 3px; left: 270px; font-size: 13px; } #battery > div:last-child { width: 27px; height: 9px; border: 1px solid #fff; position: absolute; top: 4px; left: 27px; border-radius: 2px; } #battery div div:first-child { width: 21px; height: 7px; background: #fff; position: absolute; top: 1px; left: 1px; } #battery div div:last-child { width: 1px; height: 6px; background: #FFF; position: absolute; left: 29px; top: 2px; border-radius: 0 1px 1px 0; } #fabrizio { border-top: 100px solid black; border-right: 63px solid transparent; width: 0; transform: scale(.33); transform-origin: 0 0; margin: 20px; opacity:.6; position: absolute; bottom: -130px; } #fabrizio:before { background: black; width: 20px; height: 30px; content: ''; display: block; transform: skewX(-32deg); position: relative; top: -65px; left: 29px; } #fabrizio:after { background: black; width: 40px; height: 36px; content: ''; display: block; transform: skewX(-32deg); position: relative; top: -130px; left: 49px; } #circle { width: 50px; height: 50px; background: none; border-radius: 50%; box-shadow: rgba(255,255,255,0.1) 160px 335px,rgba(255,255,255,0.1) 120px 275px 0 12px,rgba(255,255,255,0.1) 60px 355px 0 23px,rgba(255,255,255,0.1) 230px 445px 0 -8px,rgba(255,255,255,0.1) 60px 125px,rgba(255,255,255,0.1) 260px 145px 0 12px,rgba(255,255,255,0.1) 300px 145px 0 23px,rgba(255,255,255,0.1) 100px 85px 0 -8px,rgba(255,255,255,0.1) 50px 155px,rgba(255,255,255,0.1) 150px 273px 0 -2px,rgba(255,255,255,0.1) 50px 555px 0 23px,rgba(255,255,255,0.1) 180px 5px 0 -8px; animation: circle 30s linear infinite alternate; } @keyframes circle { 0%{ box-shadow: rgba(255,255,255,0.1) 160px 335px,rgba(255,255,255,0.1) 120px 275px 0 12px,rgba(255,255,255,0.1) 60px 355px 0 23px,rgba(255,255,255,0.1) 230px 445px 0 -8px,rgba(255,255,255,0.1) 60px 125px,rgba(255,255,255,0.1) 260px 145px 0 12px,rgba(255,255,255,0.1) 300px 145px 0 23px,rgba(255,255,255,0.1) 100px 85px 0 -8px,rgba(255,255,255,0.1) 350px 555px,rgba(255,255,255,0.1) 350px 273px 0 -2px,rgba(255,255,255,0.1) 150px 355px 0 23px,rgba(255,255,255,0.1) 180px 205px 0 -8px,rgba(255,255,255,0.1) 0px 0px 0 -8px,rgba(255,255,255,0.1) 100px 555px 0 10px; } 100%{ box-shadow: rgba(255,255,255,0.1) 70px 10px,rgba(255,255,255,0.1) 300px 205px 0 12px,rgba(255,255,255,0.1) 0px 155px 0 23px,rgba(255,255,255,0.1) 330px 45px 0 -8px,rgba(255,255,255,0.1) 460px 325px,rgba(255,255,255,0.1) 0px 445px 0 12px,rgba(255,255,255,0.1) 300px 145px 0 23px,rgba(255,255,255,0.1) 100px 85px 0 -8px,rgba(255,255,255,0.1) 50px 155px,rgba(255,255,255,0.1) 150px 273px 0 -2px,rgba(255,255,255,0.1) 0px 555px 0 23px,rgba(255,255,255,0.1) 180px 5px 0 -8px,rgba(255,255,255,0.1) 300px 555px 0 -8px,rgba(255,255,255,0.1) 350px 355px 0 10px; } } #reminder { position: absolute; top: 230px; left: 40px; width: 296px; height: 50px; border-top: 1px solid #86E2F0; border-bottom: 1px solid #86E2F0; line-height: 50px; font-weight: 400; opacity: 0; animation: reminder .1s linear forwards 5s; } #reminder div:first-child { background: #fff; width: 16px; height: 16px; border-radius: 3px; position: absolute; top: 18px; } #reminder div:nth-child(2) { position: absolute; left: 30px; } #reminder div:last-child{ position: absolute; left: 251px; font-size: 11px; color: #86E2F0; } @keyframes reminder { 100% { opacity: 1; } } #awwwards { position: absolute; bottom: 30px; left: 70px; } #awwwards a { color: #444; text-decoration: none; border-bottom: 1px solid #888; } #coolors { position: absolute; bottom: 30px; right: 30px; color: #444; text-decoration: none; border-bottom: 1px solid #888; animation: coolors 1s infinite; opacity: 1; } @keyframes coolors { 50% { right: 40px; } }
35
Iphone 6
By:
rald_dev
/* The switch - the box around the slider */ .switch { font-size: 17px; position: relative; display: inline-block; width: 3.5em; height: 2em; } /* Hide default HTML checkbox */ .switch input { opacity: 0; width: 0; height: 0; } /* The slider */ .slider { position: absolute; cursor: pointer; top: 0; left: 0; right: 0; bottom: 0; background-color: rgb(75, 73, 74); transition: 0.4s; border-radius: 30px; } .slider:before { position: absolute; content: ""; height: 1.4em; width: 1.4em; border-radius: 20px; left: 0.3em; bottom: 0.3em; background-color: black; box-shadow: inset 8px -4px 0 0 white; transition: 0.4s; } .switch input:checked + .slider { background-color: #2196f3; } .switch input:checked + .slider:before { transform: translateX(1.5em); background-color: yellow; box-shadow: none; }
33
Switch
By:
jusar
:root { --main-bg: #c9e8f7; --stroke-width: 6px; --stroke-color: #28354e; --cup-color: #ffffff; --cup-color-shadow: #dfded1; --cup-red: #c94f50; --cup-red-light: #fe6b68; --tebag-color: #f2f2f2; --teebag-content: #4cb5ae; --teabag-pores: #61616145; } html { box-sizing: border-box; } *, *::before, *::after { box-sizing: inherit; margin: 0; padding: 0; } .visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; white-space: nowrap; clip: rect(0 0 0 0); clip-path: inset(50%); } body { position: relative; display: flex; justify-content: center; align-items: center; padding: 1rem; min-height: 100vh; font-family: sans-serif; color: #ffffff; background-color: var(--main-bg); overflow: hidden; } .wrapper { display: flex; flex-direction: column; justify-content: center; align-items: center; max-height: 500px; } .eyes { display: flex; justify-content: space-between; } .eye { position: relative; border-radius: 150px 150px 0 0; border: var(--stroke-width) solid var(--stroke-color); border-bottom: none; } .eye::before, .eye::after { content: ""; position: absolute; bottom: calc(var(--stroke-width) / 2 * -1); display: block; width: var(--stroke-width); height: var(--stroke-width); border-radius: 50%; background-color: var(--stroke-color); } .eye:before { left: calc(var(--stroke-width) * -1); } .eye:after { right: calc(var(--stroke-width) * -1); } .teabag { position: relative; width: 130px; animation: teabag 6s ease-in infinite, brew 6s linear infinite; z-index: 1; } .teabag::before { content: ""; position: absolute; bottom: calc(100% - 15px); left: 50%; transform: translatex(-50%); display: block; width: 6px; height: 450px; background-color: var(--stroke-color); z-index: 2; } .teabag__top { position: relative; width: 100%; height: 0; border-bottom: 40px solid var(--tebag-color); border-left: 25px solid transparent; border-right: 25px solid transparent; } .teabag__top::before { content: ""; position: absolute; top: 15px; left: 50%; transform: translateX(-50%); display: block; width: 40px; height: 10px; border-radius: 10px; background-color: var(--main-bg); } .teabag__body { position: relative; width: 100%; height: 130px; padding: 30px 15px 15px; background-color: var(--tebag-color); border-radius: 0 0 2px 2px; } .teabag__body::before, .teabag__body::after { content: ""; position: absolute; bottom: 5px; display: block; width: 20px; height: 20px; background-color: var(--teabag-brewed); border-radius: 0 50% 50% 50%; rotate: 45deg; z-index: -1; } .teabag__body::before { left: 35px; animation: drop 6s ease-in 4.5s infinite; } .teabag__body::after { right: 35px; width: 15px; height: 15px; animation: drop 6s ease-in 4s infinite; } .teabag__content { width: 100%; height: 100%; padding: 30px 15px; background-color: var(--teebag-content); border-radius: 2px; transition: all .5s ease-out; } .teabag__eye { width: 20px; height: 10px; } .teabag__mouth { width: 20px; height: 10px; margin: 10px auto 0; border-radius: 0 0 150px 150px; background-color: var(--stroke-color); } .teabag__pores { position: absolute; bottom: 4px; left: 50%; transform: translateX(-50%); display: grid; grid-template-columns: repeat(4, 12px); justify-content: space-between; gap: 10px; width: 100%; padding: 20px; transition: all .5s ease-out; } .teabag__pore { width: 12px; height: 12px; margin: auto; background-color: var(--teabag-pores); border-radius: 50%; } .teabag__pore:nth-child(1), .teabag__pore:nth-child(2), .teabag__pore:nth-child(11), .teabag__pore:nth-child(12), .teabag__pore:nth-child(13), .teabag__pore:nth-child(14) { grid-column-start: span 2; } .teabag__pore:nth-child(1), .teabag__pore:nth-child(13) { margin-right: 0; } .teabag__pore:nth-child(2), .teabag__pore:nth-child(14) { margin-left: 0; } .teabag__pore:nth-child(11) { margin-left: 0; } .teabag__pore:nth-child(12) { margin-right: 0; } .teabag__pore:nth-child(11), .teabag__pore:nth-child(12) { margin-top: 12px; } .teabag__pore:nth-child(13), .teabag__pore:nth-child(14) { margin-top: -8px; } .cup__body { position: relative; margin: 0 auto; width: 190px; height: 160px; padding: 40px 32px; border-radius: 20px 20px 50% 50%; background-color: var(--cup-color); z-index: 1; } .cup__eyes { --stroke-width: 8px; position: absolute; width: calc(100% - 64px); } .cup__eye { width: 30px; height: 15px; animation: blink 6s steps(1) infinite; } .cup__eye::before, .cup__eye::after { animation: hidden 6s steps(1) infinite; } .cup__mouth { position: relative; width: 40px; height: 28px; margin: 35px auto 0; border-radius: 5px 5px 60% 60%; background-color: var(--cup-red-light); background-image: radial-gradient(var(--cup-red) 50%, transparent 50%); background-position: 0 10px; background-repeat: no-repeat; } .cup__mouth::before { content: ""; position: absolute; top: -5px; left: 50%; transform: translatex(-50%); width: 85%; height: 10px; border-radius: 0 0 180% 180% / 0 0 300% 300%; background-color: var(--cup-color); } .cup__handle { position: relative; display: flex; justify-content: center; align-items: center; width: 85px; height: 85px; margin-left: auto; margin-top: -135px; margin: -135px -30px 0 auto; border-radius: 50%; background: linear-gradient(to right, var(--cup-color-shadow) 50%, var(--cup-color) 50%); z-index: 0; } .cup__handle::after { content: ""; display: block; width: 60%; height: 60%; border-radius: 50%; background: var(--main-bg); } .cup__saucer { position: relative; margin-top: 35px; } .cup__saucer::before { content: ""; position: absolute; bottom: -30px; left: 50%; transform: translateX(-50%); display: block; width: 300px; height: 50px; border-radius: 50%; background-color: #91d5f1; z-index: -1; } .cup__saucer-top { position: relative; width: 250px; height: 25px; margin-inline: auto; background-color: var(--cup-color); border-radius: 20px; z-index: 1; } .cup__saucer-bottom { width: 210px; height: 25px; margin: -8px auto 0; background: linear-gradient(to bottom, var(--cup-color-shadow) 60%, var(--cup-color) 60%); border-radius: 20px; } @keyframes blink { 20% { height: 30px; background-color: var(--stroke-color); border-bottom: 8px solid var(--stroke-color); border-radius: 50%; } } @keyframes hidden { 20% { visibility: hidden; } } @keyframes teabag { 0% { transform: translateY(-200px); } 20% { transform: translateY(150px); } 25% { transform: translateY(130px); } 35% { transform: translateY(150px); } 40% { transform: translateY(120px); } 50% { transform: translateY(130px); } 60%, 90% { transform: translateY(-50px); } 100% { transform: translateY(-200px); } } @keyframes brew { to { --teebag-content: #c48473; --teabag-pores: #5f3c334f; } } @keyframes drop { 10%, 100% { translate: 0 150px; opacity: 0; } }
33
Tea Brewing
By:
jusar
NEWS
.wrapper { margin: 50px auto; width: 280px; height: 370px; background: white; border-radius: 10px; -webkit-box-shadow: 0px 0px 8px rgba(0,0,0,0.3); -moz-box-shadow: 0px 0px 8px rgba(0,0,0,0.3); box-shadow: 0px 0px 8px rgba(0,0,0,0.3); position: relative; z-index: 90; } .ribbon-wrapper-green { width: 85px; height: 88px; overflow: hidden; position: absolute; top: -3px; right: -3px; } .ribbon-green { font: bold 15px Sans-Serif; color: #333; text-align: center; text-shadow: rgba(255,255,255,0.5) 0px 1px 0px; -webkit-transform: rotate(45deg); -moz-transform: rotate(45deg); -ms-transform: rotate(45deg); -o-transform: rotate(45deg); position: relative; padding: 7px 0; left: -5px; top: 15px; width: 120px; background-color: #BFDC7A; background-image: -webkit-gradient(linear, left top, left bottom, from(#BFDC7A), to(#8EBF45)); background-image: -webkit-linear-gradient(top, #BFDC7A, #8EBF45); background-image: -moz-linear-gradient(top, #BFDC7A, #8EBF45); background-image: -ms-linear-gradient(top, #BFDC7A, #8EBF45); background-image: -o-linear-gradient(top, #BFDC7A, #8EBF45); color: #6a6340; -webkit-box-shadow: 0px 0px 3px rgba(0,0,0,0.3); -moz-box-shadow: 0px 0px 3px rgba(0,0,0,0.3); box-shadow: 0px 0px 3px rgba(0,0,0,0.3); } .ribbon-green:before, .ribbon-green:after { content: ""; border-top: 3px solid #6e8900; border-left: 3px solid transparent; border-right: 3px solid transparent; position:absolute; bottom: -3px; } .ribbon-green:before { left: 0; } .ribbon-green:after { right: 0; }
32
Card Corner Ribbon
By:
pixeldev
Hello World & Advance Merry Christmas!
:root { --main-bg: #c2c2c2; --trunk-bg-1: #5e2100; --trunk-bg-2: #783e00; --leaves-bottom-bg-1: #0f980f; --leaves-bottom-bg-2: #3fc83f; --leaves-middle-bg-1: #1fa81f; --leaves-middle-bg-2: #4fd84f; --leaves-top-bg-1: #2fb82f; --leaves-top-bg-2: #5fe85f; --star-bg: #ffdd00; --shine-bg: #ffeb69; --snow-bg: #f2f2f2; --tree-width: 200px; --tree-height: 400px; --tree-rotate: -15deg; --trunk-width: 30px; --trunk-height: 400px; --trunk-angle: 4.3deg; --leaves-translate: 15px; --leaves-bottom-width: 100px; --leaves-bottom-height: 320px; --leaves-bottom-angle: 18.2deg; --leaves-middle-width: 80px; --leaves-middle-height: 220px; --leaves-middle-angle: 21.4deg; --leaves-top-width: 60px; --leaves-top-height: 140px; --leaves-top-angle: 25.5deg; --star-size: 20px; } html, body { width: 100%; height: 100%; padding: 0; margin: 0; } body { overflow: hidden; } .ts-3d { transform-style: preserve-3d; } .container { background-color: var(--main-bg); width: 100%; min-height: 100%; overflow: hidden; display: flex; align-items: center; justify-content: center; } .tree { width: var(--tree-width); height: var(--tree-height); position: relative; transform-style: preserve-3d; transform: rotateX(var(--tree-rotate)); } .trunk, .leaves-bottom, .leaves-middle, .leaves-top { position: absolute; width: 100%; height: 100%; top: 0; left: 0; animation: 10s tree-rotate linear infinite; } .trunk div { border-top: none; border-left: solid var(--trunk-width) transparent; border-right: solid var(--trunk-width) transparent; position: absolute; bottom: 0; left: calc(50% - var(--trunk-width)); transform-origin: bottom; } .trunk div:nth-child(1) { border-bottom: solid var(--trunk-height) var(--trunk-bg-1); transform: rotateX(var(--trunk-angle)) translateY(2px) translateZ(var(--trunk-width)); } .trunk div:nth-child(2) { border-bottom: solid var(--trunk-height) var(--trunk-bg-2); transform: rotateY(90deg) rotateX(calc(var(--trunk-angle) * -1)) translateY(2px) translateZ(calc(var(--trunk-width) * -1)); } .trunk div:nth-child(3) { border-bottom: solid var(--trunk-height) var(--trunk-bg-1); transform: rotateX(calc(var(--trunk-angle) * -1)) translateY(2px) translateZ(calc(var(--trunk-width) * -1)); } .trunk div:nth-child(4) { border-bottom: solid var(--trunk-height) var(--trunk-bg-2); transform: rotateY(-90deg) rotateX(calc(var(--trunk-angle) * -1)) translateY(2px) translateZ(calc(var(--trunk-width) * -1)); } .leaves-bottom div { border-top: none; border-left: solid var(--leaves-bottom-width) transparent; border-right: solid var(--leaves-bottom-width) transparent; position: absolute; top: var(--star-size); left: calc(50% - var(--leaves-bottom-width)); transform-origin: bottom; } .leaves-bottom div:nth-child(1) { border-bottom: solid var(--leaves-bottom-height) var(--leaves-bottom-bg-1); transform: rotateX(var(--leaves-bottom-angle)) translateY(var(--leaves-translate)) translateZ(var(--leaves-bottom-width)); } .leaves-bottom div:nth-child(2) { border-bottom: solid var(--leaves-bottom-height) var(--leaves-bottom-bg-2); transform: rotateY(90deg) rotateX(calc(var(--leaves-bottom-angle) * -1)) translateY(var(--leaves-translate)) translateZ(calc(var(--leaves-bottom-width) * -1)); } .leaves-bottom div:nth-child(3) { border-bottom: solid var(--leaves-bottom-height) var(--leaves-bottom-bg-1); transform: rotateX(calc(var(--leaves-bottom-angle) * -1)) translateY(var(--leaves-translate)) translateZ(calc(var(--leaves-bottom-width) * -1)); } .leaves-bottom div:nth-child(4) { border-bottom: solid var(--leaves-bottom-height) var(--leaves-bottom-bg-2); transform: rotateY(-90deg) rotateX(calc(var(--leaves-bottom-angle) * -1)) translateY(var(--leaves-translate)) translateZ(calc(var(--leaves-bottom-width) * -1)); } .leaves-middle div { border-top: none; border-left: solid var(--leaves-middle-width) transparent; border-right: solid var(--leaves-middle-width) transparent; position: absolute; top: var(--star-size); left: calc(50% - var(--leaves-middle-width)); transform-origin: bottom; } .leaves-middle div:nth-child(1) { border-bottom: solid var(--leaves-middle-height) var(--leaves-middle-bg-1); transform: rotateX(var(--leaves-middle-angle)) translateY(var(--leaves-translate)) translateZ(var(--leaves-middle-width)); } .leaves-middle div:nth-child(2) { border-bottom: solid var(--leaves-middle-height) var(--leaves-middle-bg-2); transform: rotateY(90deg) rotateX(calc(var(--leaves-middle-angle) * -1)) translateY(var(--leaves-translate)) translateZ(calc(var(--leaves-middle-width) * -1)); } .leaves-middle div:nth-child(3) { border-bottom: solid var(--leaves-middle-height) var(--leaves-middle-bg-1); transform: rotateX(calc(var(--leaves-middle-angle) * -1)) translateY(var(--leaves-translate)) translateZ(calc(var(--leaves-middle-width) * -1)); } .leaves-middle div:nth-child(4) { border-bottom: solid var(--leaves-middle-height) var(--leaves-middle-bg-2); transform: rotateY(-90deg) rotateX(calc(var(--leaves-middle-angle) * -1)) translateY(var(--leaves-translate)) translateZ(calc(var(--leaves-middle-width) * -1)); } .leaves-top div { border-top: none; border-left: solid var(--leaves-top-width) transparent; border-right: solid var(--leaves-top-width) transparent; position: absolute; top: var(--star-size); left: calc(50% - var(--leaves-top-width)); transform-origin: bottom; } .leaves-top div:nth-child(1) { border-bottom: solid var(--leaves-top-height) var(--leaves-top-bg-1); transform: rotateX(var(--leaves-top-angle)) translateY(var(--leaves-translate)) translateZ(var(--leaves-top-width)); } .leaves-top div:nth-child(2) { border-bottom: solid var(--leaves-top-height) var(--leaves-top-bg-2); transform: rotateY(90deg) rotateX(calc(var(--leaves-top-angle) * -1)) translateY(var(--leaves-translate)) translateZ(calc(var(--leaves-top-width) * -1)); } .leaves-top div:nth-child(3) { border-bottom: solid var(--leaves-top-height) var(--leaves-top-bg-1); transform: rotateX(calc(var(--leaves-top-angle) * -1)) translateY(var(--leaves-translate)) translateZ(calc(var(--leaves-top-width) * -1)); } .leaves-top div:nth-child(4) { border-bottom: solid var(--leaves-top-height) var(--leaves-top-bg-2); transform: rotateY(-90deg) rotateX(calc(var(--leaves-top-angle) * -1)) translateY(var(--leaves-translate)) translateZ(calc(var(--leaves-top-width) * -1)); } @keyframes tree-rotate { 0% { transform: rotateX(0deg) rotateY(0deg); } 99.99999% { transform: rotateX(0deg) rotateY(359deg); } } .shadow { background-color: rgba(0, 0, 0, 0.8); width: calc(var(--leaves-bottom-width) * 2); height: calc(var(--leaves-bottom-width) * 2); filter: blur(calc(var(--leaves-bottom-width) / 2)); position: absolute; bottom: calc(var(--leaves-bottom-width) * -1); left: calc(50% - var(--leaves-bottom-width)); transform: rotateX(90deg) translateX(-50%); animation: 10s shadow-rotate linear infinite; } @keyframes shadow-rotate { 0% { transform: rotateX(-90deg) rotateZ(0deg); } 99.99999% { transform: rotateX(-90deg) rotateZ(359deg); } } .star-1 { transform: translateZ(-2px); animation: 10s star-1-rotate linear infinite; } @keyframes star-1-rotate { 0% { transform: rotateX(0deg) rotateY(0deg) translateZ(-2px); } 99.99999% { transform: rotateX(0deg) rotateY(359deg) translateZ(-2px); } } .star-2 { transform: translateZ(-1px); animation: 10s star-2-rotate linear infinite; } @keyframes star-2-rotate { 0% { transform: rotateX(0deg) rotateY(0deg) translateZ(-1px); } 99.99999% { transform: rotateX(0deg) rotateY(359deg) translateZ(-1px); } } .star-3 { transform: translateZ(0px); animation: 10s star-3-rotate linear infinite; } @keyframes star-3-rotate { 0% { transform: rotateX(0deg) rotateY(0deg) translateZ(0px); } 99.99999% { transform: rotateX(0deg) rotateY(359deg) translateZ(0px); } } .star-4 { transform: translateZ(1px); animation: 10s star-4-rotate linear infinite; } @keyframes star-4-rotate { 0% { transform: rotateX(0deg) rotateY(0deg) translateZ(1px); } 99.99999% { transform: rotateX(0deg) rotateY(359deg) translateZ(1px); } } .star-5 { transform: translateZ(2px); animation: 10s star-5-rotate linear infinite; } @keyframes star-5-rotate { 0% { transform: rotateX(0deg) rotateY(0deg) translateZ(2px); } 99.99999% { transform: rotateX(0deg) rotateY(359deg) translateZ(2px); } } .star, .star:before, .star:after { content: ''; height: 0; width: 0; border-top: solid 30px var(--star-bg); border-left: solid 45px transparent; border-right: solid 45px transparent; position: absolute; top: 0; left: calc(50% - 45px); } .star:before { transform: rotate(72deg); top: -33px; left: -46px; } .star:after { transform: rotate(287deg); top: -33px; left: -44px; } .shine { background: var(--shine-bg); height: 90px; width: 90px; position: absolute; top: -45px; left: calc(50% - 45px); border-radius: 50%; transform: translateZ(40px); filter: blur(20px); opacity: 0.6; animation: 5s shine linear infinite; } @keyframes shine { 0% { transform: scale(1) translateZ(40px); } 50% { transform: scale(1.5) translateZ(40px); } 100% { transform: scale(1) translateZ(40px); } } .snow-container { width: 100%; height: 100%; position: absolute; } .snow { position: absolute; } .snow:before { content: ''; background-color: var(--snow-bg); width: 100%; height: 100%; position: absolute; border-radius: 50%; } .snow-y-1:before { animation: 8s snow-y-1 ease-in infinite, 8s snow-y-0 linear infinite; } .snow-y-2:before { animation: 6s snow-y-2 ease-in infinite, 6s snow-y-0 linear infinite; } .snow-y-3:before { animation: 4s snow-y-2 ease-in infinite, 4s snow-y-0 linear infinite; } .snow-1 { width: 20px; height: 20px; top: calc(50% - 250px); left: calc(50% - 10px); animation: 1s snow-x linear infinite; } .snow-2 { width: 15px; height: 15px; top: calc(50% - 300px); left: calc(50% - 30px); animation: 0.8s snow-x linear infinite 0.1s; } .snow-3 { width: 10px; height: 10px; top: calc(50% - 400px); left: calc(50% + 60px); animation: 0.6s snow-x linear infinite 0.8s; } .snow-4 { width: 25px; height: 25px; top: calc(50% - 200px); left: calc(50% + 50px); animation: 0.5s snow-x linear infinite 0.5s; } .snow-5 { width: 18px; height: 18px; top: calc(50% - 200px); left: calc(50% - 50px); animation: 0.5s snow-x linear infinite 0.5s; } .snow-6 { width: 12px; height: 12px; top: calc(50% - 150px); left: calc(50% - 120px); animation: 0.8s snow-x linear infinite 0.5s; } .snow-7 { width: 20px; height: 20px; top: calc(50% - 150px); left: calc(50% + 75px); animation: 1s snow-x linear infinite 0.6s; } .snow-8 { width: 22px; height: 22px; top: calc(50% - 10px); left: calc(50% - 30px); animation: 1s snow-x linear infinite 0.8s; } .snow-9 { width: 8px; height: 8px; top: calc(50% - 250px); left: calc(50% - 30px); animation: 1s snow-x linear infinite 0.8s; } .snow-10 { width: 13px; height: 13px; top: calc(50% - 250px); left: calc(50% - 100px); animation: 1s snow-x linear infinite 0.8s; } @keyframes snow-x { 0% { transform: translateX(0px); } 25% { transform: translateX(5px); } 50% { transform: translateX(0px); } 75% { transform: translateX(-5px); } 100% { transform: translateX(0px); } } @keyframes snow-y-0 { 0% { opacity: 1; } 60% { opacity: 1; } 100% { opacity: 0; } } @keyframes snow-y-1 { 0% { transform: translateY(0px); } 99.99999% { transform: translateY(300px); } 100% { transform: translateY(0px); } } @keyframes snow-y-2 { 0% { transform: translateY(0px); } 99.99999% { transform: translateY(400px); } 100% { transform: translateY(0px); } } @keyframes snow-y-3 { 0% { transform: translateY(0px); } 99.99999% { transform: translateY(500px); } 100% { transform: translateY(0px); } } .message { display: flex; font-size: 100px; font-weight: 800; color: #5FE85F; font-family: sans-serif; vertical-align: middle; font-family: 'Courier New', Courier, monospace; background: url(http://pm1.narvii.com/6380/3990038ed73ad3832195151af1c9438ca5ff765f_00.jpg); }
30
Christmas Tree
By:
rald_dev
1
2
3
…
8
Next