chrisblakley / Nebula

Nebula is a WordPress theme framework that focuses on enhancing development. The core features of Nebula make it a powerful tool for designing, developing, and analyzing WordPress websites consistently, yet its deliberately uncomplicated code syntax also serves as a learning resource for programmers themselves.
https://nebula.gearside.com
GNU General Public License v2.0
142 stars 36 forks source link

Implement helpers for the new Multi Page View Transitions API [🟥 awaiting Firefox support] #506

Open chrisblakley opened 9 years ago

chrisblakley commented 9 years ago

Will need a transitions stylesheet along with an entering and exiting meta tag. The API is still currently in development.

chrisblakley commented 9 years ago

Here is another example: http://navtransoysteine.appspot.com/starry_night/ (Edit: This is a dead link now)

chrisblakley commented 9 years ago

http://chrislord.net/index.php/2015/04/24/web-navigation-transitions/

chrisblakley commented 7 years ago

https://github.com/jakearchibald/navigation-transitions

chrisblakley commented 6 years ago

Not sure if pageTransitionEvent would help... https://caniuse.com/#feat=page-transition-events

chrisblakley commented 5 years ago

screen shot 2018-11-13 at 2 19 39 pm

Future feature discussed in Chrome at the dev summit 2018. Called "Portals".

chrisblakley commented 5 years ago

More info on portals: https://github.com/WICG/portals

Related to https://github.com/chrisblakley/Nebula/issues/1782

chrisblakley commented 4 years ago

Portals browser support: https://caniuse.com/#feat=portals

chrisblakley commented 3 years ago

Closing this issue in favor of the dedicated Portals issue #1782

chrisblakley commented 2 years ago

New Page Transition API: https://www.youtube.com/watch?v=JCJUPJ_zDQ4

Developer guide: https://github.com/WICG/shared-element-transitions/blob/main/developer-guide.md Note that individual names may change.

Screen Shot 2022-05-12 at 10 52 14 PM

chrisblakley commented 2 years ago

More references:

Screen Shot 2022-05-12 at 10 57 34 PM

Screen Shot 2022-05-12 at 10 58 00 PM

chrisblakley commented 1 year ago

Tracked in CanIUse now: https://caniuse.com/view-transitions

Note: This is for single pages, not cross document view transitions!

Screen Shot 2023-06-12 at 9 12 27 AM

chrisblakley commented 1 year ago

More details on the cross-document view transitions here: https://github.com/WICG/view-transitions/blob/main/cross-doc-explainer.md

The above support table is specific to single pages.

chrisblakley commented 5 months ago

There will be a session at Google I/O 2024 for this: "Multi-page application View Transitions are here":

Screen Shot 2024-04-26 at 2 32 19 PM

chrisblakley commented 5 months ago

Much more information available now.

https://www.youtube.com/watch?v=eY6C_-aDdTo

Doc: https://developer.chrome.com/docs/web-platform/view-transitions/cross-document

MPA Demo: https://view-transitions.netlify.app/stack-navigator/mpa-prerender/ SPA Demo: https://live-transitions.pages.dev/

Browser Support: https://developer.chrome.com/docs/web-platform/view-transitions#cross-document_view_transitions (Chrome 126)

chrisblakley commented 5 months ago

Now, should Nebula automatically include this CSS that enables view transitions on by default, or defer to child theme developers to implement that?

@view-transition {
  navigation: auto;
}
chrisblakley commented 5 months ago

Here's what I'm starting to experiment with on my Nebula documentation website to learn this.

#hero-section,
#bigheadingcon,
.hero-area {
    view-transition-name: hero;
}

This fades between pages, but ideally I'd love to scale the height of the hero section between home page and subpage.

chrisblakley commented 5 months ago

Got a working demo added to Nebula: https://nebula.gearside.com/examples/multi-page-view-transitions-listing/

https://github.com/chrisblakley/Nebula/assets/6349678/f327b6c9-60bd-4bc2-a3fe-554dd1003989

chrisblakley commented 1 week ago

Now supported in Safari. Only wait on Firefox now.

https://caniuse.com/view-transitions

Screenshot 2024-10-09 at 11 07 00 AM