在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
开源软件名称(OpenSource Name):samthor/rippleJS开源软件地址(OpenSource Url):https://github.com/samthor/rippleJS开源编程语言(OpenSource Language):JavaScript 54.5%开源软件介绍(OpenSource Introduction):rippleJSAdds Material Design-style feedback ripples to your existing HTML without any dependencies. Show me the demos! UsageInclude the rippleJS script (or use a local copy).
Then, add elements with the <button class="yourButton">
Click Me
<div class="rippleJS"></div>
</button>
<script async src="https://cdn.jsdelivr.net/npm/[email protected]"
integrity="sha384-OlarGErerEgz/M7123pQTTek4pUIiR6t0BK09bTmWDi2cZYbv3VHrriaXDnA0Oup"
crossorigin="anonymous"></script>
<!-- or if using ES6 modules -->
<script type="module">
import 'https://cdn.jsdelivr.net/npm/[email protected]';
</script> rippleJS adds handlers on Ripple FillBy adding the <div class="optHolder">
<input type="checkbox" />
<div class="rippleJS fill"></div>
</div> Ripple ColorThe default color is a transparent version of the current color (aka, the .rippleJS .ripple {
background: red;
} You could also change it just for some elements: .yourClassName .rippleJS .ripple {
background: blue;
} Or change the level of opacity: .moreOpaque .rippleJS .ripple {
opacity: 0.65;
} SupportsChrome, Safari, Firefox (all as of Dec 2014).
Requires InstallInstead of using rippleJS directly, you can fetch it using your favourite package manager:
You can either use |
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论