Coder Social home page Coder Social logo

Comments (5)

morethanreal avatar morethanreal commented on June 2, 2024

This is in early stages and there are bugs, but there's some code in the next branch that supports using attributes like delay and duration on the animated element. It also depends on the web-animations-next branch in Polymer/core-animation and web-animations/web-animations-next.

from core-animated-pages.

mirceapiturca avatar mirceapiturca commented on June 2, 2024

Looks like you are switching from CSS transitions to native/js animations. This can be really good, allowing much more flexibility and control then CSS transitions.
Wondering if the web animations polyfill will work decent on mobile devices. When can we expect for this to go live?

from core-animated-pages.

mirceapiturca avatar mirceapiturca commented on June 2, 2024

Tested the new core-animated-pages that uses web-animations-next. The animation is jittery and duration seems longer. Even if element.animate is natively available I am getting a javascript animation. Is this a bug/issue in web-animations-next?

from core-animated-pages.

morethanreal avatar morethanreal commented on June 2, 2024

I think the polyfill is supposed to use Element.animate when it's available natively, but it doesn't do that right now. @dstockwell @alancutter

I'll likely keep this work in the branch until some bugs are resolved with the web animations polyfill. In particular, there's some issues with the finish event and timing functions.

from core-animated-pages.

mirceapiturca avatar mirceapiturca commented on June 2, 2024

I've created a test using the web-animations-next polyfill running on Chrome 37, with native support. Unfortunately the polyfill is not using the native element.animate and is doing a Javascript animation. Probably this is why the animation is jittery. Also not sure but both JS and native animation may run in parallel and this can cause the performance issues.

See the test here:
http://typefolly.com/polymer/components/web-animations-next/web-animations-next-test.html

I think that this should be submitted as a bug in web-animations-next.
Got any test cases with the finish and timing functions, maybe I can be of some help?

Thanks

from core-animated-pages.

Related Issues (20)

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.