Animating the first loading screen
See original GitHub issueWhat’s up?
👋 hey there!
Awesome job on the playground folks, this is awesome!!
I’ve come up with a new loading flow for the Playground, thanks @schickling & @julianbauer for the design reviews! 🎩
It has been made with care to:
- not add new dependencies to the project by using CSS animations with React & styled-components;
- rendering well on all major browsers, there were some good challenges here! I didn’t test Edge if someone can tell me how it looks? See link to the prototype below 😇
Current state
Before opening a PR to potentially integrate it to the codebase, I’d like to see with you what should be done.
It appears that the approximately same loading screen has 3 different implementations at the moment:
- a static React component on the web app (source)
- an animated React component on the electron app, not used at the moment (source)
- a static HTML landing repeated 5 times across the middleware as
render-playground-page.ts
😄 (screenshot)
So…?
Should a PR about the Loading component be targeted only at the web app or include the other packages?
If it should include the other packages:
- does the electron app need a Loading component? It doesn’t rely on a
loading
state at the moment and uses directly thePlayground
component, notApp
. - should all
render-playground-page.ts
pages be unified somehow? if yes, should this page use an already bundled component to avoid loading react & react-dom from a cdn like graphiql?
Voilà, I’d love to help on that, and even other things! ✋
Prototype: https://codepen.io/xavcz/pen/bYReeM/left?editors=0010
Issue Analytics
- State:
- Created 6 years ago
- Reactions:4
- Comments:10 (5 by maintainers)
Top Results From Across the Web
Creating an animated loading screen - Interactions tutorial
A step-by-step tutorial about creating an animated loading screen with Pinegrow Interactions.
Read more >CSS Loading Animations: How to Make Them + 15 Examples
Laptop with CSS loading animation on screen and hourglass on desk ... First, add a div in HTML and define it with the...
Read more >Everything you need to know about Loading Animations
So it's better to solve content loading problems first. ... Loading screen visual for app by Nguyen Tran. You can also find interesting ......
Read more >Make Creative Loading Screen Animation for Video Intros
To create a unique and custom loading screen animation, the most powerful tool would be using Adobe After Effects. However, the steep learning...
Read more >How to create a beautiful animated loader with nothing but ...
This is why I decided to build an animated loading screen that would appear ASAP and stay visible until the rest of the...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Yay, thanks @timsuchanek: excellent explanation of the whole thing, it makes a lot of sense! 👌
Agree with you! Let’s implement the animation in the most straightforward way for the most efficiency: loader implemented in pure html/css/svg 🚀
Yeah definitely, I believe we can get rid of the
Loading
component, and get React (= the Playground component when mounted?) to communicate with the node where the HTML loader is hosted.Thus we could avoid this behavior: HTML Loader -> React Loader -> Playground
Let’s go for all that, I’ll work on a PR!
Yeah, this is in general a tricky topic. Here are two (hacky) ways how you could handle this (maybe someone knows a better method?):
@xavcz/graphql-playground
node_modules
)