jakiestfu / jakiestfu/Snap.js

Add body class while animating

Open
#92 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
5.9k
Forks
642
PR merge metrics
No merged PRs in 30d

Description

Im trying to add a class on body while the pane is animating, to do this i add a function on the 'animating' event who add a class on the body and other function who remove this class on the event 'animated'.

http://jsfiddle.net/Us8DT/

As you can see in the fiddle, the class 'snapjs-(left/right)' dont get removed after the panel close.

Contributor guide

No contributing guide indexed for this repository

Research direction

Start with the linked JSFiddle and reproduce the pane animation using the `animating` and `animated` events. Trace how the `snapjs-(left/right)` body class is added and removed, then verify that closing the panel leaves no such class on the body.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
mobile-dev
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.