question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

data-josh-anim-delay doesn't work

See original GitHub issue

Hi,

The data attribute data-josh-anim-delay doesn’t work because:

delay = targetElm.dataset.joshDelay; // Animation delay

in josh.js

should be

delay = targetElm.dataset.joshAnimDelay; // Animation delay

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:2
  • Comments:5 (1 by maintainers)

github_iconTop GitHub Comments

4reactions
bueprocommented, Oct 1, 2020

Alternatively the data attribute name could be changed to data-josh-delay. In this context I am wondering if the josh-anim name space is needed at all or would just josh be easier hence data-josh-anim-name could become josh-name or just josh. See as well michalsnik/aos.

0reactions
bueprocommented, Mar 28, 2022

@mamunhpath thank you for your library and the update. Since I am using it in a cms where all the js files get concatenated the compressed version from the file src/josh.js is needed. When bumbing the library to 1.0.8 two issues were found:

  1. It was confusing to me that dist/josh.min.js isn’t the compressed version since the naming convention would suggest so.
  2. When embedding dist/josh.es5.min.js the attribute data-josh-anim-delay isn’t working where data-josh-delay does.
Read more comments on GitHub >

github_iconTop Results From Across the Web

jQuery .delay() doesn't work - Stack Overflow
delay () method allows us to delay the execution of functions that follow it in the queue. It can be used with the...
Read more >
mamunhpath/josh.js: A JavaScript library to animate ... - GitHub
A JavaScript library to animate content on page scroll · No jQuery Dependency · Written on ES6(Compiled ES5 version available) · Very much...
Read more >
Josh.js - A JavaScript Library to Animate Content on Page Scroll
A JavaScript library to animate content on page scroll. No jQuery Dependency. Written on ES6(Compiled ES5 version available).
Read more >
Delay function doesn't work - Arduino Forum
I am using an Arduino Mega 2560 and using pins 2 and 3 for A and B outputs of the encoder. I am...
Read more >
Newbie tries to get delay to work : r/puredata - Reddit
Hello. I am new to PureData and I want to delay an OSC message for X seconds. I found the object delay, but...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found