Skip to content

Commit 4d4ca4f

Browse files
authored
fix case in README.md
The import for the vanilla version specifies an uppercase identifier. However it was used with lowercase in the examples.
1 parent dda9e00 commit 4d4ca4f

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

README.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -65,14 +65,14 @@ simply add the following JavaScript code :
6565

6666
```javascript
6767
const image = document.getElementsByClassName('thumbnail');
68-
new simpleParallax(image);
68+
new SimpleParallax(image);
6969
```
7070

7171
You can also choose to apply the parallax on multiple images :
7272

7373
```javascript
7474
const images = document.querySelectorAll('img');
75-
new simpleParallax(images);
75+
new SimpleParallax(images);
7676
```
7777

7878
Once simpleparallax has been correctly initialized, it adds the ```simple-parallax-initialized``` class on the container.
@@ -87,7 +87,7 @@ simpleParallax now works with video :
8787

8888
```javascript
8989
var video = document.getElementsByTagName('video');
90-
new simpleParallax(video);
90+
new SimpleParallax(video);
9191
```
9292

9393
## Settings
@@ -146,7 +146,7 @@ const Component = () => (
146146

147147
```javascript
148148
var images = document.querySelectorAll('.thumbnail');
149-
new simpleParallax(images, {
149+
new SimpleParallax(images, {
150150
delay: 0,
151151
orientation: 'down',
152152
scale: 1.3,
@@ -190,7 +190,7 @@ Refresh a simpleParallax instance (to recalculate all the positions) :
190190

191191
```javascript
192192
var images = document.querySelectorAll('img');
193-
var instance = new simpleParallax(images);
193+
var instance = new SimpleParallax(images);
194194
instance.refresh();
195195
```
196196

@@ -201,7 +201,7 @@ Destroy a simpleParallax instance:
201201

202202
```javascript
203203
var images = document.querySelectorAll('img');
204-
var instance = new simpleParallax(images);
204+
var instance = new SimpleParallax(images);
205205
instance.destroy();
206206
```
207207

0 commit comments

Comments
 (0)