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.
Customizable jquery plugin to play and stop animated gifs. New: Video support (webm, mp4)
Customizable jquery plugin to play and stop animated gifs. Similar to 9gag's. New: Video support (webm, mp4)
###Basic Usage
<img class="gifplayer" src="media/banana.png" />
<script>
$('.gifplayer').gifplayer();
</script>
###Options
Options can be setup in two ways:
$('.banana').gifplayer({ label: 'play' });
<img class="banana" src="banana.png" data-label="play">
Option | Values | Default | Allowed values |
---|---|---|---|
label | A value for the label in the circle over the image | ‘gif’ | |
playOn | Event that triggers playing the animated gif | 'click' | 'click', 'hover' |
mode | Load an animated gif file or a video | 'gif' | 'gif', 'video' |
gif | Source for the gif file | Default option is the same name of the preview imagem replacing extension to .gif | |
mp4 | Source for the mp4 video file (video mode) | Default option is the same name of the preview imagem replacing extension to .mp4 | |
webm | Source for the webm video file (video mode) | Default option is the same name of the preview imagem replacing extension to .webm | |
wait | Would you wait until the animation file has been fully loaded to play, or start playing right away | false | true, false |
###Methods (beta)
Use these methods to play and stop the player programatically
$('#banana').gifplayer('play');
$('#banana').gifplayer('stop');
###Events (beta)
Use events to do awesome things
$('#banana').gifplayer({
onPlay: function(){
console.log('GIF started',this);
},
onStop: function(){
console.log('GIF stopped',this);
},
});
FAQs
Customizable jquery plugin to play and stop animated gifs. New: Video support (webm, mp4)
The npm package gifplayer receives a total of 50 weekly downloads. As such, gifplayer popularity was classified as not popular.
We found that gifplayer 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.