Skip to content

added a hook to disable parallax conditionally#23

Open
DmitryEfimenko wants to merge 2 commits intofunctionsio:masterfrom
DmitryEfimenko:master
Open

added a hook to disable parallax conditionally#23
DmitryEfimenko wants to merge 2 commits intofunctionsio:masterfrom
DmitryEfimenko:master

Conversation

@DmitryEfimenko
Copy link

I noticed that parallax performs really bad on tablets so I needed a way to disable it based on the screen size.
This code change enables the following:

<div parallax-background parallax-if="isDesktop()"></div>

I noticed that parallax performs really bad on tablets so I needed a way to disable it based on the screen size.
This code change enables the following:
```
<div parallax-background parallax-if="isDesktop()"></div>
```
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant