Giter VIP home page Giter VIP logo

Comments (1)

alfonsogarciacaro avatar alfonsogarciacaro commented on June 15, 2024 1

Unfortunately this is a problem because the animate directive requires LitElement although anything implementing the ReactiveController interface should be enough. I sent them a PR to fix this some time ago but didn't get a reply: lit/lit#2239

But... it doesn't really matter because at the end I couldn't implement the updateComplete method in HookComponent properly (it relies on a complicated schedule I couldn't understand well). So if you want to use animate you'll need to have a LitElement somewhere up in the component hierarchy. It's enough to have a single LitElement as the root without a shadow (in case you want to use global CSS) as it's done in Lit.TodoMVC.

About the effects of animate and the transition. You can say the transition affects only that component but animate affects siblings too. In the case of Lit.TodoMVC the transition creates the zoom in/out effect, while animate moves the items smoothly to adjust a list after adding/removing elements.

from fable.lit.

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.