metafizzy / metafizzy/flickity

Add autoPlay events: play, stop, pause, unpause

Open
#429 5 comments 8 reactions 0 assignees View on GitHub
feature request
Dominant language
JavaScript
Stars
7.6k
Forks
593
PR merge metrics
No merged PRs in 30d

Description

I have a playpause button, which I'd like to update the icon of, when the player paused state has changed.

Currently I cannot find any events for the player, and I'd like to suggest adding `play`, `stop`, `pause`, and `unpause` events.

For example:

```
// jQuery
$carousel.on( 'play.flickity', function() {
console.log( 'Flickity player playing')
})
// vanilla JS
flkty.on( 'play', function() {...})
```

Contributor guide

Open the contributing guide

Research direction

Start by tracing Flickity's autoPlay/player behavior and how existing events are exposed to jQuery and vanilla JavaScript consumers. Define the play, stop, pause, and unpause event points, then verify that each event fires when the corresponding player state changes.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
frontend
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
38/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.