ng2-ui / parallax-scroll

Angular2 parallax background scroll directive

Home Page:https://ng2-ui.github.io/#/parallax

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Image width 100% stretches IMG

ezkay opened this issue · comments

commented

As this is not using background-size: cover;, a small image leaves a blank space. If IMG is set with width: 100%;, the image is stretched..

Or maybe a solution with css like this one?
https://github.com/TheOriginalJosh/nativescript-ng2-parallax

Question:

  1. Do you want to stretch out image if smaller than box?
  2. Do you have any working example?
commented

Oh shoot, just forgot to hook the image in.
The screenshot shows two parallax containers. The upper one has an image that is big enough. The second image is too small. So it lefts whitespace.Setting the width to 100% leaves the height untouched so that the proportions would be broken.
bildschirmfoto 2016-11-17 um 19 35 20

Thank you for more explanation
I will see what I can do about it.
Meanwhile, any help or PR would be highly appreciated

This is fixed already

This is fixed already