Security News
Research
Data Theft Repackaged: A Case Study in Malicious Wrapper Packages on npm
The Socket Research Team breaks down a malicious wrapper package that uses obfuscation to harvest credentials and exfiltrate sensitive data.
flickity-fullscreen
Advanced tools
Enable fullscreen view for Flickity carousels
Add fullscreen.css
to your stylesheets and fullscreen.js
to your scripts.
<link rel="stylesheet" href="https://unpkg.com/flickity-fullscreen@2/fullscreen.css">
<script src="https://unpkg.com/flickity-fullscreen@2/fullscreen.js"></script>
npm: npm install flickity-fullscreen
Yarn: yarn add flickity-fullscreen
Enable fullscreen behavior by setting fullscreen: true
in Flickity options.
// jQuery
var $carousel = $('.carousel').flickity({
fullscreen: true,
});
// vanilla JS
var flkty = $('.carousel').flickity({
fullscreen: true,
});
<!-- HTML -->
<div class="carousel" data-flickity='{ "fullscreen": true }'>
...
</div>
const Flickkty = require('flickity');
require('flickity-fullscreen');
var flkty = new Flickity( '.carousel', {
fullscreen: true,
});
.is-fullscreen
is added to the carousel when fullscreen.
Size cells to take up full height with CSS.
/* normal */
.carousel-cell {
height: 200px;
}
/* fullscreen */
.carousel.is-fullscreen .carousel-cell {
height: 100%;
}
Expand carousel to fullscreen.
// jQuery
$carousel.flickity('viewFullscreen');
// vanilla JS
flkty.viewFullscreen();
Collapse carousel from fullscreen back to normal size & position.
// jQuery
$carousel.flickity('exitFullscreen');
// vanilla JS
flkty.exitFullscreen();
Expand or collapse carousel fullscreen view.
// jQuery
$carousel.flickity('toggleFullscreen');
// vanilla JS
flkty.toggleFullscreen();
Triggered after entering or exiting the fullscreen view.
// jQuery
$carousel.on( 'fullscreenChange.flickity', function( event, isFullscreen ) {...} );
// vanilla JS
flkty.on( 'fullscreenChange', function( isFullscreen ) {...} );
event
· Event · jQuery event
objectisFullscreen
· Boolean · true
if viewing fullscreen, false
if exiting fullscreenBy Metafizzy 🌈🐻
FAQs
Enable fullscreen view of Flickity carousels
The npm package flickity-fullscreen receives a total of 5,040 weekly downloads. As such, flickity-fullscreen popularity was classified as popular.
We found that flickity-fullscreen 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
Research
The Socket Research Team breaks down a malicious wrapper package that uses obfuscation to harvest credentials and exfiltrate sensitive data.
Research
Security News
Attackers used a malicious npm package typosquatting a popular ESLint plugin to steal sensitive data, execute commands, and exploit developer systems.
Security News
The Ultralytics' PyPI Package was compromised four times in one weekend through GitHub Actions cache poisoning and failure to rotate previously compromised API tokens.