New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

universal-parallax

Package Overview
Dependencies
Maintainers
1
Versions
27
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

universal-parallax - npm Package Compare versions

Comparing version 1.1.6 to 1.1.7

2

package.json
{
"name": "universal-parallax",
"version": "1.1.6",
"version": "1.1.7",
"description": "Easy parallax plugin using pure javascript. Cross browser compatibility, including mobile platforms (iOS, Android). Support for opaque backgrounds.",

@@ -5,0 +5,0 @@ "main": "dist/universal-parallax.js",

@@ -53,4 +53,5 @@ # Universal Parallax

left: 0;
transform: translate3d(0,0,0);
/* optional - for better control, put in separate class */
/* BG behaviour */
background-repeat: no-repeat;

@@ -61,10 +62,9 @@ background-position: center;

```
:zap: _Gives more flexibility controlling the behaviour of bg images (see "optional" comment)_
:zap: _BG behaviour in seperate class gives more flexibility controlling them_
#### #3
If `<section>` is your container, make the parallax element inside it, just before the **_closing tag_** :point_left:
If `<section>` is your container, make the parallax element inside it
```html
<section>
...
<div class="parallax" data-parallax-image="path/to/your_image">

@@ -71,0 +71,0 @@ </section>

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc