sajibsrs / jquery-slim-parallax

Small, simple and easy to use jQuery parallax plugin

Home Page:https://sajibsrs.github.io/jquery-slim-parallax

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Simplify installation process.

webhasan opened this issue · comments

You can simplify your installation process by passing the background image with the section. Something like

<div class="slim-prx" data-bg="bg.jpg">
    <div class="container">
            content
    </div>
</div>

And including required css in js file.

We want to keep markup as clean as possible. So I see no point defining background on data attribute. :)