Git Product home page Git Product logo

Comments (15)

 avatar commented on July 16, 2024 4

I appreciate the minimalism! The implementation looks simple and extensible. Very nice.

from react-pwa.

 avatar commented on July 16, 2024 1

@dav-is given this was closed by pr, maybe there's another bug which could be opened to pull against?

from react-pwa.

tirthbodawala avatar tirthbodawala commented on July 16, 2024

Definitely @dav-is. Everybody likes a smooth transition, We will make sure we provide optional animation support while changing pages/urls.. You inputs and suggestion are always appreciated.

from react-pwa.

 avatar commented on July 16, 2024

Here's how I do it on Hack Cabin using keyframe animation. I deliberately do not animate the header so global navigation is always visible between page transitions.

from react-pwa.

dav-is avatar dav-is commented on July 16, 2024

from react-pwa.

dav-is avatar dav-is commented on July 16, 2024

Maybe http://maisano.github.io/react-router-transition/ would work nicely

from react-pwa.

tirthbodawala avatar tirthbodawala commented on July 16, 2024

I agree with @jhabdas. It can be very minimal CSS transition/animation and developer can easily customize it. @dav-is The problem with any React Transition/Animation is it creates a copy of the rendered children and then displays it till the transition ends. Which is a very DOM heavy process.
Thus we would not include it directly in bolerplate and leave the decision to the developer.

Instead I am busy finding a simple solution of fade-in-out on route change. thus making it light weight and really simple.

Thanks Guys.

from react-pwa.

tirthbodawala avatar tirthbodawala commented on July 16, 2024

I have added a simple module which is configurable with simple CSS. Very light weight. I know we can still improve it and make it more configurable but I think this should solve the transition issue as of now.
Enhancements can be added to other mile-stones.

FYI @jhabdas & @dav-is, I hope you like it.

from react-pwa.

dav-is avatar dav-is commented on July 16, 2024

Page doesn't animate in on initial load

from react-pwa.

tirthbodawala avatar tirthbodawala commented on July 16, 2024

@jhabdas I shall re-open the bug. :)

from react-pwa.

dav-is avatar dav-is commented on July 16, 2024

This might be considered an issue in page transitions and the image component, but the split second before an image is loaded it takes up 0px, then suddenly it loads and shifts all the content. This could be solved by using progressive image loading everywhere, but not everyone will want to do that.

from react-pwa.

tirthbodawala avatar tirthbodawala commented on July 16, 2024

@dav-is This issue is regarding Page Transition. I think you replied to wrong issue :)

from react-pwa.

tirthbodawala avatar tirthbodawala commented on July 16, 2024

@dav-is I have moved the css from bottom of body to head section. This might cut 2 points from page speed but is more appropriate as animating the content on load was dependent on JS and many crawlers are not JS friendly thus rendering empty sections (waiting for animation)

I personally think rather than adding transitions on page load it should be on page transitions only.
Your views ?

from react-pwa.

dav-is avatar dav-is commented on July 16, 2024

Any critical CSS should be in the head regardless. If it’s in the body, you will get a flash of unstyled components. If you want the speed benefit here, I’d recommend CSS-in-JS. Which would put all the critical styles in the head and any styles that wouldn’t be used would be loaded when it’s needed.

As for Transition on load, I think you’re right. It should only be on page change, not the initial load.

from react-pwa.

tirthbodawala avatar tirthbodawala commented on July 16, 2024

@dav-is Thanks for your inputs. I shall continue your talk on CSS-inJS in the specified issue :)
PS: I implemented workbox-sw.js with a small trade-off of API cache. But I shall customize it soon. Thanks for the suggestion.

from react-pwa.

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.