avivharuzi / ngx-glide

Angular wrapper component of Glide carousel library
https://www.npmjs.com/package/ngx-glide
MIT License
29 stars 7 forks source link

Option to have "center" attribute #13

Closed IvanVelickovski closed 4 years ago

IvanVelickovski commented 4 years ago

I was playing around with this wrapper in the last couple of days and I find it really cool and promising. I'm thinking of actually using it for my next Angular project.

However, I feel that it would be even better with additional "center" attribute as it's shown in the demo here.

If you set the "center" attribute to true in the demo you can have an output like this one:

Screen Shot 2020-09-29 at 12 43 13 AM
avivharuzi commented 4 years ago

Yea I know it may be confusing because of the demo I choose the word center... But it uses the focusAt input which can be number or string which is "center" to add more input is useless... Hope it helps you.

IvanVelickovski commented 4 years ago

I tried that but it doesn't seem to work. Even if you try it in your demo here it will show you an error Property 'center' does not exist on type 'AppComponent'.

Screen Shot 2020-09-29 at 10 10 10 AM
IvanVelickovski commented 4 years ago

Ah, nevermind, I should've used focusAt without the brackets. Thank you for your time.

I'm closing this one. :)