npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

@vtbag/turn-signal

v1.2.2

Published

Turn-Signal is a lightweight script that enhances cross-document navigation by detecting the direction of browser navigation. It enables developers to create smooth, responsive transitions that adjust based on forward or backward navigation, delivering a

Downloads

16,052

Readme

⭐️Please star to support this work⭐️

🔙 The Turn Signal

Turn-Signal: Directional view transitions for intuitive navigation.

Build Status npm version minzip NPM Downloads

The @vtbag website can be found at https://vtbag.dev/

!!! News !!!

The Turn-Signal learned a new trick! With the new link-types script, you can assign view transition types directly to the links that trigger navigation. This means you can create different view transition animations for the same page, based on the link that takes you there! Simply use data-vtbag-link-types attributes to set transition types and use them in you CSS to guard your animation rules.

But that's not all: link-types lets you specify different transition types for history back navigation too!

Check out the image viewer tech demo for a hands-on example and the docs at vtbag.dev/tools/turn-signal.

Happy animating! 🎉

For details see the CHANGELOG.

What happened before?

Transition types and direction attributes are now also determined on the old page!

What is it?

Turn-Signal is a lightweight script that enhances browser-native cross-document view transitions by detecting the direction of browser navigation. It enables developers to create smooth, responsive transitions that adjust based on forward or backward navigation, delivering a more intuitive user experience.

When your pages slide to the left on forward navigation, let them slide to the right when the users goes back in the browser's history.

The script automatically detects the traversal direction and sets backward, same or forward view transition types accordingly. You can also instruct the script to set data attributes on the <html> element.

If your site has the concept of a previous and next page, the Turn-Signal can automatically generate directional transitions for you.

See the Turn Signal in action and see how it can be customized.