Skip to content
forked from icons8/titanic

A set of animated icons + code to insert them into the webpages

Notifications You must be signed in to change notification settings

iMargarita/titanic

 
 

Repository files navigation

Titanic

A collection of animated icons + javascript library.

Preview

Preview all icons

Installation

You can install it either via CDN or npm.

CDN

Insert this string to your HTML head:

<script src="https://cdn.rawgit.com/icons8/titanic/1af9dce0/dist/js/titanic.min.js"></script>

And initialize it before the body closes:

<script>
    titanic.begin();
</script>

This way, you can add icons anywhere in your HTML using this tag:

<div id='chat' class='titanic'></div>

Where chat can be any of these:

  • caps
  • chat
  • checkbox
  • expand
  • expensive1
  • expensive2
  • idea
  • mailbox
  • mic
  • no_microphone
  • online
  • pause
  • quick_mode
  • shopping_cart
  • smile
  • stop
  • unlock
  • zoom

Hosting your images

If you'd like to host your images on your server instead of rawgit, pass the base URL with the init() function:

titanic.begin('/my/base/directory/');

Then, if you have a div with id="chat", Titanic will search for icons in /my/base/directory/chat.json.

npm

npm install titanic-icons --save

Credits

JavaScript is basically bodymovin plus few lines of my code. It's a solid library with an awesome name. Thank you, guys.

Icons are created by Margarita Ivanchikova from Icons8. She has many more awesome animations in her portfolio.

Magritte

About

A set of animated icons + code to insert them into the webpages

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 67.3%
  • HTML 32.7%