Git Product home page Git Product logo

enami's People

Contributors

enzoemb avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

enami's Issues

Cannot set Enami data to HTML DOM Elements using JavaScript

Hello, @EnzoEmb. How's it going?

In order to keep DOM Elements clean I use to append animation classes and datasets via javascript.
I'm testing Enami to animate some HTML elements but I found the following error:
The elements only get animated if I declare data-enami-children="" inline. If I remove it, the animation won't start. Curiously, the attribute doesn't need to have the same value from javascript code.

HTML Code:
< div id="demo" class="demo" data-enami-children="anything-here">
Javascript Code:

att('.staggering > #demo', {'class':'demo','data-enami-animation':'fade-up','data-enami-children':'.demo-dot','data-enami-stagger':'.2s'});

You can check this out in action in this Pen:
https://codepen.io/byJaris/pen/bGOpEZZ

Is there a way to resolve this?

Thanks in advance and congrats for Enami.js

Error when trying to apply animation using 'data-enami' in a parent element with children that have 'data-enami-animation'

Hello again @EnzoEmb

I'm still testing Enami library and created a quick page to try different usages. Everything looks so smooth and nice but there's an error when I try to apply the animations in the nav. I'd like to animate the base of the menu and then, the UL list inside it. But I guess I doing something wrong here. I tested in Chrome and Firefox and get the same result. But in the preview inside CodePen everything is fine.

When I inspect the page I noticed that the 'enami-in' data is forcing to be injected in the DOM but something happens and delays the animation for a long time.

I also noticed this error message related to the javascript file:

ead450e0-19d0-473a-ad91-f1ccb0bad0be

Here is the 'data-enami-in' in action:

chrome_n2JRUT62DO.mp4

And this is my Pen:

https://codepen.io/byJaris/pen/oNJxOPZ

Thank you again.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.