You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 4-6.RSVP
Socket
Book a DemoInstallSign in
Socket

@liquidlight/buttery-parallax

Package Overview
Dependencies
Maintainers
2
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@liquidlight/buttery-parallax

A parallax jQuery plugin

1.3.0
latest
Source
npmnpm
Version published
Maintainers
2
Created
Source

Buttery.js

buttery

Yes, another jQuery parallax image slider...

Buttery is a parallax image scroller which uses transforms and doesn't allow the user to scroll past the end of the image.

It creates a new element inside your selected element and sets the background. This element is then adjusted with CSS transforms.

Parameters

ParameterDefaultDescription
parallaxSelector'.parallaxInner'Class of the new div that gets created
scale1.5The scale of the element/image
heightimageHow high the parallaxSelector box is (can be px, % or 'image' to use the image height)
scrollFraction2What speed the scrolling effect is
imagebackgroundWhether to use a background image or image in the code

Examples

$(window).on('load', function() {
	$('.banner').buttery({
		parallaxSelector: '.parallaxInner',
		scale: 1.5,
		height: 'image',
		scrollFraction: 2,
	});
});

Contributing

We welcome pull requests and issues!

If making a PR, it would be handy if you could please run npm run dist before committing and pushing. To run this you will need uglifyjs installed as a global module.

If you can't run it, don't let it put you off - we'll run it our end 😀

FAQs

Package last updated on 14 Jan 2020

Did you know?

Socket

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.

Install

Related posts