I am working with Laravel 5.4 application having parallax effect for the main background. It works perfectly fine on desktop, and also works perfect on varied screen size through developer tool, but when the same page is accessed via mobile device, the parallax effect doesn't show up. I have added the block of code responsible for the needed effect.
#promo {
min-height: 25em;
width: 100%;
position: relative;
z-index: 0;
}
<body>
<section id="promo" style="background: url() 50% 0px repeat fixed; background-size:cover;">
</section>
</body>
via Chebli Mohamed
Aucun commentaire:
Enregistrer un commentaire