filter:blur(px)
filter:drop-shadow(h-shadow v-shadow blur [spread] color)
filter: drop-shadow() drop-shadow() drop-shadow();
.bs { box-shadow: 0 0 1px #000; }
.ds { filter: drop-shadow(0 0 1px #000); }
filter:grayscale(%)
filter: hue-rotate(deg)
.hue { color: #fff; font-size: 60px; letter-spacing: 4px; text-align: center; text-transform: uppercase; text-shadow: 0 0 10px #089, 0 0 20px #089, 0 0 40px #089, 0 0 80px #089, 0 0 160px #089; animation: hue 2s linear alternate infinite; } @keyframes hue { to { filter: hue-rotate(360deg); } }
.primary { border: none; outline: none; width: 100px; height: 40px; color: #fff; background-color: #f40; border-radius: 10px; } .hue1 { filter: hue-rotate(0.1turn); } .hue2 { filter: hue-rotate(0.3turn); } .hue3 { filter: hue-rotate(0.5turn); } .hue4 { filter: hue-rotate(0.7turn); } .hue5 { filter: hue-rotate(0.9turn); }
<div class="slider"> <input id='slider' class="range" type="range"> <img class="slider-down" src="../utils/view/view0.jpg" alt=""> <img id="tar" class="slider-up" src="../utils/view/view0.jpg" style="--slider:50" alt=""> </div>
.slider-down { filter: grayscale(100%); } .slider-up { clip-path: inset(0 0 0 calc(var(--slider)*1%)); }
let slider = document.querySelector('#slider') let tar = document.querySelector('#tar') slider.addEventListener('input', function () { tar.style.setProperty('--slider', this.value) })
<div class="slider slider-pre"></div>
.slider-pre { position: relative; width: 320px; height: 180px; margin: 2rem auto; } .slider-pre::before, .slider-pre::after { content: ''; position: absolute; left: 0; top: 0; width: 100%; height: 100%; background-image: url(../utils/view/view0.jpg); } .slider-pre::before { filter: grayscale(100%); } .slider-pre::after { clip-path: inset(0 100% 0 0); transition: 5s; } .slider-pre:hover::after { clip-path: inset(0 0 0 0); }
.glass-box { background-image: url(./imgs/1.png); background-size: cover; } .glass { width: 60%; height: 100%; background-image: linear-gradient(to bottom right, rgba(255, 255, 255, 0.5), rgba(255, 255, 255, 0.1)); backdrop-filter: blur(1rem); }