Security News
38% of CISOs Fear They’re Not Moving Fast Enough on AI
CISOs are racing to adopt AI for cybersecurity, but hurdles in budgets and governance may leave some falling behind in the fight against cyber threats.
dom-slideshow
Advanced tools
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 6 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
CISOs are racing to adopt AI for cybersecurity, but hurdles in budgets and governance may leave some falling behind in the fight against cyber threats.
Research
Security News
Socket researchers uncovered a backdoored typosquat of BoltDB in the Go ecosystem, exploiting Go Module Proxy caching to persist undetected for years.
Security News
Company News
Socket is joining TC54 to help develop standards for software supply chain security, contributing to the evolution of SBOMs, CycloneDX, and Package URL specifications.