.container { display: grid; grid-gap: 20px; grid-template-columns: repeat(6, 1fr); position: relative; } .item { /* border: 1px solid var(--gray); */ box-sizing: border-box; display: inline-block; height: 15px; padding: 5px; width: 15px; padding-right: 28px; padding-top:1px; } .icon { color: var(--white); position: absolute; } .icon:before, .icon:after { content: ''; position: absolute; } i { position: absolute; } i:before, i:after { background-color: currentcolor; content: ''; position: absolute; } /* Search Icon ... Start */ .search.icon { border: 2px solid currentcolor; border-radius: 50%; /* color: var(--purple); */ height: 12px; margin-top: 1px; margin-left: 2px; transform: rotate(-45deg); width: 12px; } .search.icon:before { background-color: currentcolor; height: 10px; left: 5px; top: 12px; width: 2px; } /* Search Icon ... End */ /* Menu Icon ... Start */ .menu.icon { border-bottom: none; border-left: none; border-right: none; border-top: 1px solid currentcolor; /* color: var(--green); */ margin-top: 10px; transition: transform .5s ease-out 0s; width: 24px; will-change: transform; } .item:hover .menu.icon { transform: rotate(90deg); } .menu.icon:before { border-bottom: none; border-left: none; border-right: none; border-top: 1px solid currentcolor; top: -8px; width: 24px; } .menu.icon:after { border-bottom: none; border-left: none; border-right: none; border-top: 1px solid currentcolor; top: 6px; width: 24px; } /* Menu Icon ... End */ /* Close Icon ... Start */ .close.icon, .close.icon:before { border-left: 1px solid currentcolor; height: 20px; } .close.icon { /* color: var(--blue); */ margin-left: 12px; margin-top: -2px; transform: rotate(45deg); transition: transform .2s ease-in-out 0s; will-change: transform, opacity; } .close.icon:before { left: -1px; transform: rotate(90deg); } .close.icon:after { background-color: transparent; /* border: 1.5px solid currentcolor; */ border-radius: 50%; height: 26px; left: -15px; opacity: 0; top: -4px; transition: opacity .5s ease-in 0s; width: 26px; } .item:hover .close.icon { transform: rotate(135deg); } .item:hover .close.icon:after { opacity: 1; } /* Close Icon ... End */ /* Messanger Icon ... Start */ .message.icon { border: 1px solid currentcolor; /* color: var(--orange); */ height: 16px; margin-top: -2px; margin-left: -2px; transition: transform .3s ease-out 0s; width: 24px; will-change: transform; } .item:hover .message.icon { transform: rotate(10deg); } .message.icon:before { background-color: var(--black); border-bottom: 1px solid currentcolor; border-right: 1px solid currentcolor; height: 7px; left: 5px; transform: rotate(45deg); top: 13px; width: 7px; } .message.icon i, .message.icon i:before, .message.icon i:after { background-color: currentcolor; border-radius: 50%; height: 3px; width: 3px; } .item:hover .message.icon i { animation: shrink 1.6s ease 0s infinite; } .message.icon i { margin-left: 4px; margin-top: 6px; } .message.icon i:before { left: 6px; } .message.icon i:after { left: 12px; } @keyframes shrink { 0%, 100% { transform: scale(1) } 50% { transform: scale(.7) } } /* Message Icon ... End */ /* User Icon ... Start */ .user.icon { border: 1px solid currentcolor; border-radius: 50px 50px 10px 10px; /* color: var(--yellow); */ height: 12px; margin-left: -1px; margin-top: 10px; width: 24px; } .user.icon:before { background-color: var(--black); border: 1px solid currentcolor; border-radius: 50%; height: 16px; left: 3px; top: -15px; width: 16px; } /* User Icon ... End */ /* Back Arrow ... Start */ .back.icon { border-bottom: 1px solid currentcolor; border-left: none; border-right: none; border-top: none; /* color: var(--pink); */ height: 1px; margin-left: 1px; margin-top: 7px; width: 24px; } .back.icon:before { border-bottom: 1px solid currentcolor; border-left: none; border-right: none; border-top: none; height: 1px; left: -2px; top: -5px; transform: rotate(-45deg); width: 14px; } .back.icon:after { border-bottom: 1px solid currentcolor; border-left: none; border-right: none; border-top: none; height: 1px; left: -2px; top: 5px; transform: rotate(45deg); width: 14px; } /* Back Arrow ... End */ /* Forward Arrow ... Start */ .forward.icon { border-bottom: 1px solid currentcolor; border-left: none; border-right: none; border-top: none; /* color: var(--pink); */ height: 1px; margin-right: 2px; margin-top: 7px; width: 24px; } .forward.icon:before { border-bottom: 1px solid currentcolor; border-left: none; border-right: none; border-top: none; height: 1px; right: -2px; top: -5px; transform: rotate(45deg); width: 14px; } .forward.icon:after { border-bottom: 1px solid currentcolor; border-left: none; border-right: none; border-top: none; height: 1px; right: -2px; top: 5px; transform: rotate(-45deg); width: 14px; } /* Forward Arrow ... End */ /* House Icon ... Start */ .house.icon { border-bottom: none; border-left: 1px solid currentcolor; border-right: none; border-top: 1px solid currentcolor; /* color: var(--blue); */ height: 21px; margin-left: 2px; margin-top: -3px; transform: rotate(45deg); width: 21px; } .house.icon:before { border-bottom: 1px solid currentcolor; border-left: 1px solid currentcolor; border-right: 1px solid currentcolor; border-top: none; height: 14px; left: 1.5px; top: 5px; transform: rotate(-45deg); width: 20px; } /* House Icon ... End */ /* Play Icon */ .play.icon { border: 1px solid currentcolor; border-radius: 50%; /* color: var(--red); */ height: 30px; margin-left: -5px; margin-top: -7px; width: 30px; will-change: opacity, transform; } .item:hover .play.icon:before { animation: ringDissolve 1s ease-in-out 0s infinite; } .play.icon:before { border: 1px solid currentcolor; border-radius: 50%; height: 36px; left: -4px; opacity: 0; top: -4px; width: 36px; } @keyframes ringDissolve { 0%, 100% { height: 36px; opacity: 0; transform: translate( 0px, 0px); width: 36px } 49% { height: 37px; opacity: 1; transform: translate( -.5px, -.5px); width: 37px } 50% { height: 36px; opacity: 1; transform: translate( 0px, 0px); width: 36px } } /* .item:hover .play.icon:after { animation: outerRingDissolve 1s ease-in-out 0s infinite; } */ .play.icon:after { border: 1px solid currentcolor; border-radius: 50%; height: 40px; left: -6px; opacity: 0; top: -6px; width: 40px; } @keyframes outerRingDissolve { 0%, 100% { height: 40px; opacity: 0; transform: translate( 0px, 0px); width: 40px } 49% { height: 41px; opacity: 1; transform: translate( -.5px, -.5px); width: 41px } 50% { height: 40px; opacity: 1; transform: translate( 0px, 0px); width: 40px } } .play.icon i { background-color: currentcolor; border-left: 1px solid currentcolor; height: 13px; margin-left: 10px; margin-top: 8px; width: 1px; } .play.icon i:before, .play.icon i:after { height: 1px; width: 15px; } .play.icon i:before { border-bottom: 1px solid currentcolor; bottom: 2px; left: -2px; transform: rotate(-30deg); } .play.icon i:after { border-top: 1px solid currentcolor; left: -2px; top: 2px; transform: rotate(30deg); } /* Play Icon ... End */ @media (max-width: 600px) { .container { grid-template-columns: repeat(3, 1fr); } } @media (max-width: 320px) { .container { grid-template-columns: repeat(2, 1fr); } } .close.icon{ color:#555; } .slide-in-elliptic-top-fwd { -webkit-animation: slide-in-elliptic-top-fwd 0.4s cubic-bezier(0.250, 0.460, 0.450, 0.940) both; animation: slide-in-elliptic-top-fwd 0.4s cubic-bezier(0.250, 0.460, 0.450, 0.940) both; } /* ---------------------------------------------- * Generated by Animista on 2022-5-1 17:12:11 * Licensed under FreeBSD License. * See http://animista.net/license for more info. * w: http://animista.net, t: @cssanimista * ---------------------------------------------- */ /** * ---------------------------------------- * animation slide-in-elliptic-top-fwd * ---------------------------------------- */ @-webkit-keyframes slide-in-elliptic-top-fwd { 0% { -webkit-transform: translateY(-600px) rotateX(-30deg) scale(0); transform: translateY(-600px) rotateX(-30deg) scale(0); -webkit-transform-origin: 50% 100%; transform-origin: 50% 100%; opacity: 0; } 100% { -webkit-transform: translateY(0) rotateX(0) scale(1); transform: translateY(0) rotateX(0) scale(1); -webkit-transform-origin: 50% 1400px; transform-origin: 50% 1400px; opacity: 1; } } @keyframes slide-in-elliptic-top-fwd { 0% { -webkit-transform: translateY(-600px) rotateX(-30deg) scale(0); transform: translateY(-600px) rotateX(-30deg) scale(0); -webkit-transform-origin: 50% 100%; transform-origin: 50% 100%; opacity: 0; } 100% { -webkit-transform: translateY(0) rotateX(0) scale(1); transform: translateY(0) rotateX(0) scale(1); -webkit-transform-origin: 50% 1400px; transform-origin: 50% 1400px; opacity: 1; } } .slide-out-elliptic-top-bck { -webkit-animation: slide-out-elliptic-top-bck 0.4s ease-in both; animation: slide-out-elliptic-top-bck 0.4s ease-in both; } @-webkit-keyframes slide-out-elliptic-top-bck { 0% { -webkit-transform: translateY(0) rotateX(0) scale(1); transform: translateY(0) rotateX(0) scale(1); -webkit-transform-origin: 50% 1400px; transform-origin: 50% 1400px; opacity: 1; } 100% { -webkit-transform: translateY(-600px) rotateX(-30deg) scale(0); transform: translateY(-600px) rotateX(-30deg) scale(0); -webkit-transform-origin: 50% 100%; transform-origin: 50% 100%; opacity: 1; } } @keyframes slide-out-elliptic-top-bck { 0% { -webkit-transform: translateY(0) rotateX(0) scale(1); transform: translateY(0) rotateX(0) scale(1); -webkit-transform-origin: 50% 1400px; transform-origin: 50% 1400px; opacity: 1; } 100% { -webkit-transform: translateY(-600px) rotateX(-30deg) scale(0); transform: translateY(-600px) rotateX(-30deg) scale(0); -webkit-transform-origin: 50% 100%; transform-origin: 50% 100%; opacity: 1; } } .roll-out-left { -webkit-animation: roll-out-left 0.4s ease-in both; animation: roll-out-left 0.4s ease-in both; } @-webkit-keyframes roll-out-left { 0% { -webkit-transform: translateX(0) rotate(0deg); transform: translateX(0) rotate(0deg); opacity: 1; } 100% { -webkit-transform: translateX(-1000px) rotate(-540deg); transform: translateX(-1000px) rotate(-540deg); opacity: 0; } } @keyframes roll-out-left { 0% { -webkit-transform: translateX(0) rotate(0deg); transform: translateX(0) rotate(0deg); opacity: 1; } 100% { -webkit-transform: translateX(-1000px) rotate(-540deg); transform: translateX(-1000px) rotate(-540deg); opacity: 0; } } .fade-out { -webkit-animation: fade-out 1s ease-out both; animation: fade-out 1s ease-out both; } @-webkit-keyframes fade-out { 0% { opacity: 1; } 100% { opacity: 0; } } @keyframes fade-out { 0% { opacity: 1; } 100% { opacity: 0; } } .slide-out-bck-center { -webkit-animation: slide-out-bck-center 0.3s cubic-bezier(0.550, 0.085, 0.680, 0.530) both; animation: slide-out-bck-center 0.3s cubic-bezier(0.550, 0.085, 0.680, 0.530) both; } @-webkit-keyframes slide-out-bck-center { 0% { -webkit-transform: translateZ(0); transform: translateZ(0); opacity: 1; } 100% { -webkit-transform: translateZ(-1100px); transform: translateZ(-1100px); opacity: 0; } } @keyframes slide-out-bck-center { 0% { -webkit-transform: translateZ(0); transform: translateZ(0); opacity: 1; } 100% { -webkit-transform: translateZ(-1100px); transform: translateZ(-1100px); opacity: 0; } } .slide-out-bck-top { -webkit-animation: slide-out-bck-top 0.3s cubic-bezier(0.550, 0.085, 0.680, 0.530) both; animation: slide-out-bck-top 0.3s cubic-bezier(0.550, 0.085, 0.680, 0.530) both; } @-webkit-keyframes slide-out-bck-top { 0% { -webkit-transform: translateZ(1) translateY(0); transform: translateZ(1) translateY(0); opacity: 1; } 100% { -webkit-transform: translateZ(-1100px) translateY(-1000px); transform: translateZ(-1100px) translateY(-1000px); opacity: 0; } } @keyframes slide-out-bck-top { 0% { -webkit-transform: translateZ(1) translateY(0); transform: translateZ(1) translateY(0); opacity: 1; } 100% { -webkit-transform: translateZ(-1100px) translateY(-1000px); transform: translateZ(-1100px) translateY(-1000px); opacity: 0; } }