A single progress uses pure css to achieve animation effects

DDD
Release: 2024-09-12 22:16:10
Original
749 people have browsed it

see in https://codepen.io/i18n-site/pen/WNqWevp

A single progress uses pure css to achieve animation effects

pug

p input#rangeInput(type="range", min="0", max="100", value="50") progress#progressBar(value="50", max="100") p progress(max="100", value="10") progress(max="100", value="40") progress(max="100", value="80") progress(max="100", value="100")
Copy after login

css

progress[value], progress[value]::-webkit-progress-bar { border-radius: 10px; box-shadow: 0 0 3px inset #ccc; background-size: 400% 400%; background: url('data:image/svg+xml,'); } progress[value] { width: 200px; border: 2px solid #eee; -webkit-appearance: none; -moz-appearance: none; appearance: none; overflow: hidden; height: 20px; --pbarbg: url('data:image/svg+xml,'); } progress[value]::-webkit-progress-value { box-shadow: 0 0 3px inset #999; border-radius: 10px; background: var(--pbarbg); transition: all 0.5s; } progress::-moz-progress-bar { box-shadow: 0 0 3px inset #999; border-radius: 10px; background: var(--pbarbg); transition: all 0.5s; }
Copy after login

The above is the detailed content of A single progress uses pure css to achieve animation effects. For more information, please follow other related articles on the PHP Chinese website!

source:dev.to
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!