All Projects → robinloeffel → jazzer

robinloeffel / jazzer

Licence: other
Add some visual smooth jazz to your page

Programming Languages

javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to jazzer

Phaser State Transition
State transition plugin for Phaser.js
Stars: ✭ 169 (+789.47%)
Mutual labels:  transition
Marshroute
Marshroute is an iOS Library for making your Routers simple but extremely powerful
Stars: ✭ 208 (+994.74%)
Mutual labels:  transition
Lsyevernote
Stars: ✭ 248 (+1205.26%)
Mutual labels:  transition
Transitioner
A library for dynamic view-to-view transitions
Stars: ✭ 2,049 (+10684.21%)
Mutual labels:  transition
Droidmotion
🏂 Implementation of a simple android motion
Stars: ✭ 200 (+952.63%)
Mutual labels:  transition
Transition
Easy interactive interruptible custom ViewController transitions
Stars: ✭ 2,566 (+13405.26%)
Mutual labels:  transition
Starwars.android
This component implements transition animation to crumble view into tiny pieces.
Stars: ✭ 1,942 (+10121.05%)
Mutual labels:  transition
Editly
Slick, declarative command line video editing & API
Stars: ✭ 3,162 (+16542.11%)
Mutual labels:  transition
Visualizer
UI-Router state visualizer and transition visualizer
Stars: ✭ 205 (+978.95%)
Mutual labels:  transition
Presentr
iOS let's you modally present any view controller, but if you want the presented view controller to not cover the whole screen or modify anything about its presentation or transition you have to use the Custom View Controller Presentation API's.
Stars: ✭ 2,816 (+14721.05%)
Mutual labels:  transition
Cssanimation.io
CSS Animation Library for Developers and Ninjas
Stars: ✭ 176 (+826.32%)
Mutual labels:  transition
Decktransition
A library to recreate the iOS Apple Music now playing transition
Stars: ✭ 2,207 (+11515.79%)
Mutual labels:  transition
Zfdragablemodaltransition
Custom animation transition for present modal view controller
Stars: ✭ 2,485 (+12978.95%)
Mutual labels:  transition
React Reveal Text
✨ A small react library for animating the revealing of text.
Stars: ✭ 171 (+800%)
Mutual labels:  transition
Ailight
AiLight is a custom firmware for the esp8266 based Ai-Thinker (or equivalent) RGBW WiFi light bulbs
Stars: ✭ 248 (+1205.26%)
Mutual labels:  transition
Materialtransitionanimation
Material Animations practice which is inspired from
Stars: ✭ 165 (+768.42%)
Mutual labels:  transition
Spstorkcontroller
Now playing controller from Apple Music, Mail & Podcasts Apple's apps.
Stars: ✭ 2,494 (+13026.32%)
Mutual labels:  transition
react-router-v4-transition
React Router V4 Transition
Stars: ✭ 40 (+110.53%)
Mutual labels:  transition
Fluidtransitions
Fluid Transitions for React Navigation
Stars: ✭ 2,814 (+14710.53%)
Mutual labels:  transition
Anix
🐿 Super easy and lightweight(<3kb) JavaScript animation library
Stars: ✭ 239 (+1157.89%)
Mutual labels:  transition

jazzer

jazzer on npm

jazzer lets you easily freshen up your site and improve its memorability by a bunch. You know these short white flashes when changing between pages? Ugggh, right? jazzer fixes that. It lets you control exactly what should visually happen when clicking on an internal link. Install it, import it, configure it. Give your project the sexyness it deserves!

How to Install

You can install and use jazzer in one of two ways. Install it in a terminal with either yarn or npm and later import / require it somewhere along the line.

// your terminal
yarn add jazzer

// your script
import jazzer from 'jazzer';

Or, if this whole node stuff just isn't your style, no worries. Download the latest release from here or reference it from some CDN and add it to your DOM in a script tag.

// your html
<script src="jazzer.js"></script>

Setting up jazzer

Setting up jazzer is fast. Whip this up somewhere in your code and you're almost good to go.

// your script
jazzer();

Now you need to add two things to your DOM: An element with the id jazzer and some links with the attribute data-jazzer-trigger. When clicking on data-jazzer-trigger, jazzer will look for the href attribute on the clicked link and load the contents of the HTML document laying there. If it could identify an element with the same id, in our case jazzer, in the loaded document, it will replace the contents of the #jazzer on this document with the contents of the #jazzer of the loaded document. That's how simple it is.

A document body, ready to be manipulated by jazzer, looks something like this:

<body>
    <header>
        <a href="faq.html" data-jazzer-trigger>I'll trigger jazzer!</a>
    </header>

    <main id="jazzer">
        <p>I will be replaced via AJAX!</p>
    </main>

    <script src="jazzer.min.js"></script>
    <script>
        jazzer();
    </script>
</body>

Adding the Jazz

jazzer will apply a class of your choosing, or if you just roll with the defaults, jazzer-changing to your container #jazzer, while performing the AJAX request and changing the markup. This gives you full control over what should visually happen on your page, while everything gets loaded and injected in the background. The CSS of the demo page looks like that:

#jazzer {
    transition: opacity .5s ease-in-out, transform .5s ease-in-out;
}

.jazzer-changing {
    opacity: 0;
    transform: scale(.75);
    pointer-events: none;
}

Custom Settings

Of course you can configure jazzer to float your boat if you're not content with the defaults. The configurable values are links, container, transitionClass, duration and changeUrl. You can give jazzer an object with (some of) these properties when calling it. Here's an example:

jazzer({
    links: '.i-will-trigger-jazzer-on-click',
    container: '#my-contents-will-change',
    transitionClass: '.i-get-applied-to-container-when-changing',
    duration: 10000, // love me some long animations
    changeUrl: false // i don't want jazzer to change the url
});

When working with your own values, or in general, make sure to synchronize the duration property with the transition-duration of container. As mentioned, you don't need to overwrite all of these. You can just modify the ones you want to change and leave the rest be. The defaults are:

links = '[data-jazzer-trigger]';
container = '#jazzer';
transitionClass = 'jazzer-changing',
duration = 500;
changeUrl = true;

Browser Compatibility

This package is functional on

  • Internet Explorer 11
  • Microsoft Edge
  • Google Chrome
  • Mozilla Firefox
  • Apple Safari (WebKit in general)

Licence

MIT

Created by Robin Löffel, 2017

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].