Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

[Feat]: ⭐ Roadmap#841

Unanswered
davidjerleke asked this question inIdeas
Apr 25, 2024· 2 comments· 5 replies
Discussion options

⭐ Roadmap

embla-carousel

embla-carousel-autoplay

embla-carousel-class-names

exportconstdefaultOptions:OptionsType={active:true,breakpoints:{},snapped:'is-snapped',inView:'is-in-view',pointerDown:'is-pointer-down',// Applied while pointer is down on the carousel. (Previously is-dragging)dragging:'is-dragging',// Applied while the carousel is being dragged. (New behaviour)draggable:'is-draggable',}

embla-carousel-svelte

  • Rename the event to lowercaseonemblaInit -->onemblainitt.

embla-carousel-docs

embla-carousel-data-attributes

You must be logged in to vote

Replies: 2 comments 5 replies

Comment options

Remove the init event (deprecated).

Hi@davidjerleke.
I'm really confused, when I read this because I'm using that event, if this event is removed, is there any other event that can do this? Is the removal of this event related to the development of SSR?

You must be logged in to vote
5 replies
@davidjerleke
Comment options

davidjerlekeMay 6, 2024
Maintainer Author

@sarussss what Embla package are you using? No it’s not related to SSR.

@sarussss
Comment options

@davidjerleke i'm using Vanilla module package v8.0.1
Is this the event mentioned?

@davidjerleke
Comment options

davidjerlekeMay 6, 2024
Maintainer Author

Is this the event mentioned?

Yes it is.

@davidjerleke i'm using Vanilla module package v8.0.1

Allright. This is how you should do it instead:

importEmblaCarouselfrom'embla-carousel'functiononInit(emblaApi){/* Do something on init... */}constemblaNode=document.querySelector('.embla')constemblaApi=EmblaCarousel(emblaNode,{loop:true})onInit(emblaApi)// Embla is ready hereemblaApi.on('reInit',onInit)
@sarussss
Comment options

@davidjerleke Thank you.

@sarussss
Comment options

Hi@davidjerleke
What do you think if you add it to the roadmap?
I think the library would be even better if it could improve this problem.
#676

Comment options

Hello 👀 Have you thought about creating a package using the format e.g.@embla-carousel,@embla-carousel/autoplay, etc.? It could make dependency management easier, improve discoverability, and keep everything more organised under a consistent naming structure. Just a thought! Thanks! 😄

You must be logged in to vote
0 replies
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Category
Ideas
Labels
feature requestNew feature or request
3 participants
@davidjerleke@edtorba@sarussss

[8]ページ先頭

©2009-2025 Movatter.jp