UNPKG

ripple-hover-effect

Version:

Javascript library to animate images on hover.

104 lines (91 loc) 1.69 kB
html{background: #fff;} body{ width: 100vw; height: 100vh; background: #0e0e0e !important; } body>canvas{ position: absolute; z-index: 1; top: 0; left: 0; width: 100%; height: 100%; } main{ position: absolute; top: 0; left: 0; z-index: 2; } header{ position: relative; z-index: 200; width: 100vw; padding: 30px 100px 0 100px; letter-spacing: 1px; color: white; } header h4{display: flex; align-items: center;} header h4 span{ height: 2px; background: white; width: 50px; margin-right: 10px } .container{ margin-top: 80px; width: 100%; height: 100%; display: grid; place-items: center; } .card{ overflow: hidden; position: relative; cursor: pointer; } .card .card_details{ background: linear-gradient(to top, black, transparent); height: 0; padding-left: 15px !important; padding-right: 15px !important; } .card .card_details>*{ opacity: 0; transform: translateY(20%) } .card_full canvas{ position: absolute; z-index: 1; top: 0; left: 0; } .card .card_title{ position: absolute; width: 100%; left: 0; bottom: 30px; z-index: 100; padding-left: 15px !important; padding-right: 15px !important; color: white; } .card .card_title h4{ font-size: 16px; } .card .card_title a{ font-size: 20px } @media (max-width: 1000px){ header h4{ font-weight: 400; font-size: 14px; } header a{ font-size: 12px; } .container{ top: 40px } }