Security News
tea.xyz Spam Plagues npm and RubyGems Package Registries
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
dom-slideshow
Advanced tools
Readme
import DOMSlideshow from 'dom-slideshow';
Pick dist/dom-slideshow.min.js and place in your HTML:
<script src="path/to/dom-slideshow.min.js"></script>
Make a wrapper <div>
with height
. Then place DOMSlideShow divs.
<div style="height: 500px">
<div class="DOMSlideshow">
<ul class="DOMSlideshow__Inner">
<li class="DOMSlideshow__Item -zoomin">
<div class="DOMSlideshow__ItemContent">content 1</div>
<div class="DOMSlideshow__ItemEffect" style="background-image: url( img/1.jpg );"></div>
</li>
<li class="DOMSlideshow__Item -rtol">
<div class="DOMSlideshow__ItemContent">CONTENT 2</div>
<div class="DOMSlideshow__ItemEffect" style="background-image: url( img/2.jpg );"></div>
</li>
<li class="DOMSlideshow__Item -zoomout">
<div class="DOMSlideshow__ItemContent">content 3</div>
<div class="DOMSlideshow__ItemEffect" style="background-image: url( img/3.jpg );"></div>
</li>
<li class="DOMSlideshow__Item -ltor">
<div class="DOMSlideshow__ItemContent">CONTENT 4</div>
<div class="DOMSlideshow__ItemEffect" style="background-image: url( img/4.jpg );"></div>
</li>
</ul>
</div>
</div>
There are 5 effect types. Set a modifier class to apply.
ClassName | Effect |
---|---|
-zoomin | zoom in |
-zoomout | zoom out |
-rtol | right to left |
-ltor | left to right |
no class | just fade out |
then run it
new DOMSlideshow( document.querySelector( '.DOMSlideshow' ) );
if you dont want to write JS, just set data-dom-slideshow-autostart
attribute.
See the Basic demo.
See the Events demo.
FAQs
## Examples
The npm package dom-slideshow receives a total of 14 weekly downloads. As such, dom-slideshow popularity was classified as not popular.
We found that dom-slideshow demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
Security News
As cyber threats become more autonomous, AI-powered defenses are crucial for businesses to stay ahead of attackers who can exploit software vulnerabilities at scale.
Security News
UnitedHealth Group disclosed that the ransomware attack on Change Healthcare compromised protected health information for millions in the U.S., with estimated costs to the company expected to reach $1 billion.