Giter Club home page Giter Club logo

slogan-roulette's Introduction

Slogan Roulette

Slogan Roulette is a zepto/jquery plugin that lets you swap/animate words in your titles.

demo gif

What ?

Ok, let's say you built a landing page for your next product.

You have a big slogan in the middle of this page: "Our software makes developpers happy"

Then you realize: not only developeprs love our product, but also designers, doctors, architects and space monkeys !!!

Holly crap! This is amaizing. Now you have to tell the world about it.

Now would it be cool if you could easily replace a word in your claim, while animating the whole thing ?

Sure! And this is exactly what slogan roulette is made for.

Quick start

<!doctype html>
<head>
	<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/animate.css/3.5.1/animate.min.css"/>
</head>
<body>
	<h1>Our software makes <span id="swappable-title"><span>developpers</span></span> happy</h1>
</body>
<script src="https://cdnjs.cloudflare.com/ajax/libs/zepto/1.1.6/zepto.min.js"></script>
<script src="dist/slogan-roulette.min.js"></script>
<script>
// all options
$('#swappable-title').sloganRoulette({
	autoplay: true,
	repeat: true,
	startDelay: 700,
	interval: 1000,
	outClass: "bounceOut",
	inClass: "bounceIn",
	slogans: ["designers", "doctors", "architects", "space monkeys"]
});
</script>

Dev environment

Install dependencies

# install gulp dependencies
npm install

# install gulp globaly
npm install --global gulp-cli

Recompile assets

gulp build

Watch changes & Recompile assets

gulp

pull requests, suggestions & bug reports are welcome

cheers !

Notes

Huge thanks to animate.css project for providing awesome css classes for our animations.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.