Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More โ†’
Socket
Sign inDemoInstall
Socket

astro-vtbot

Package Overview
Dependencies
Maintainers
1
Versions
72
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

astro-vtbot

The ๐Ÿ‘œ Bag of Tricks โœจ for Astro's View Transitions

  • 1.4.5
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
7.3K
increased by6.79%
Maintainers
1
Weekly downloads
ย 
Created
Source

No, its NOT a roBOT ๐Ÿค–, its a ๐Ÿ‘œ Bag of Tricks!โœจ

Bag of Tricks for Astro's View Transitions

The bag of tricks provides extensions & support around Astro's view transitions.

Build Status npm version

A current deployment of tech demos and the documentation can be found at https://events-3bg.pages.dev/

!!! NEW TRICKS โœจ IN THE BAG ๐Ÿ‘œ !!!

โณ New Component: <LoadingIndicator/> is added per default when astro-vtbot is installed as an Astro integration with npx astro add astro-vtbot.

๐ŸŽฅ The bag of tricks now includes pre-built animations that you can use with your view transitions, just like Astro's built-in fade() and slide()! Use vtbot's zoom() and swing() with Astro's transition:animate or enjoy completely new freedom in designing view transitions using the advanced parameterization options and the new <AnimationStyle/> component!

Reusable Components ๐Ÿงฉ

  • In need for extensions for view transitions because you have issues with iframes on your pages?
  • Wanting support in understanding and debugging view transitions or simply want a second pair of eyes on your view transition settings?
  • Looking for reusable animations or special transition effects?

The astro-vtbotpackage isn't a monolithic library. Use the components you need and only pay bandwidth for those.

ComponentBrotli bytes added
Linter ๐Ÿงน~2k
VtBotDebug ๐Ÿ›~2k
ReplacementSwap โ†น~0.5k
LoadingIndicator โณ~0.5k
Zoom ๐Ÿ”Ž~0.5k
Swing ๐ŸŽท~0.5k
Portal ๐Ÿšช~0.3k
NoScroll ๐Ÿ“œ~0.2k

Visit the documentation of the reusable components for detailed information.

  • <Linter/>: A linter component that helps you identify problems when setting up transitions.

  • <VtBotDebug/>: A Debugging component that logs the events and their data as they occur.

  • <ReplacementSwap/>: An alterantive DOM swap(), which preserves elements in the original DOM to avoid reinitialization of iframes or CSS animations.

  • <LoadIndicator>: Have you ever missed the visual feedback on sites with view transitions as to whether the app has noticed the click? Here you go!

  • Zoom and Swing animations and the <AnimationsStyle/> component allows for extended styling options.

  • <Portal/> component that forces all view transitions through a portal/loading page.

  • <NoScroll/> keep the current vertical and horizontal scroll position when transitioning to the next page.

Tech Demos ๐Ÿ”ฅ

The bag of tricks currently contains several technical demos that show examples of the implementation of various effects using the view transition events.

The sources are in this repository.

The Jotter ๐Ÿ““

Last but not least, the deployment also includes the โ–ถ Jotter โ—€ with a wealth of information on transition events as well as background information and valuable tips & tricks on view transitions in Astro.

Some of the contents are technical demos, some are useful tools, and some are reusable components that you can use in your own project to handle edge cases that go beyond Astro's standard features.

Keywords

FAQs

Package last updated on 31 Jan 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with โšก๏ธ by Socket Inc