Skip to content

Commit 447e6fc

Browse files
committed
syntax highlighting on codeblocks in README
1 parent f80693b commit 447e6fc

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,21 +24,21 @@ npm i react-scroll-parallax
2424

2525
Import `ParallaxController` on the client side and call `ParallaxController.init()` to create the global `ParallaxController` which will handle updating all parallax elements on scroll.
2626

27-
```
27+
```javascript
2828
import { ParallaxController } from 'react-scroll-parallax';
2929

3030
ParallaxController.init();
3131
```
3232

3333
Import the `Parallax` component...
3434

35-
```
35+
```javascript
3636
import { Parallax } from 'react-scroll-parallax';
3737
```
3838

3939
... then use it like so:
4040

41-
```
41+
```jsx
4242
<Parallax
4343
className="custom-class"
4444
offsetYMax={20}

0 commit comments

Comments
 (0)