cwadrupldijjit / ng2-parallax

A parallax plugin/directive for Angular 2. Learn more at:
http://cwadrupldijjit.com/ng2-parallax
MIT License
29 stars 18 forks source link

Disable Background-repeat and apply aspect fit/fill for parallax image #5

Open snowywolfie opened 7 years ago

snowywolfie commented 7 years ago

Hi, I just want to know is there any options to disable background-repeat and apply aspect fill to image? Because if I tried with small image it turned out like image below.

screen shot 2016-12-07 at 11 16 28 am
cwadrupldijjit commented 7 years ago

@snowywolfie: Thanks for asking and sorry for the late response!

Right now, there are no options to disable background-repeat or fill for the image used. I'm not sure if it would be something that will be implemented, however, due to the fact that this directive deals more with the moving parts to get the parallax effect working, and leaves much of the static styling particulars to be done in the stylesheets of the application along with the background image:

.some-parallax-element {
  background: norepeat fill url(/path/to/image.jpg);
}

A thought of more of the background attributes being managed is being tossed around, but it hasn't been planned yet.

cwadrupldijjit commented 7 years ago

Would you prefer to have the background fill to be managed by the directive?

cwadrupldijjit commented 5 years ago

I will be moving this to the new repo if there is still interest. The new repo/package is found here: cwdj-parallax

cwadrupldijjit commented 5 years ago

Oops. Accidentally closed the issue. (I'd been doing that with other issues, and my fingers did that automatically...)