Giter VIP home page Giter VIP logo

anicons's Introduction

Anicons

Anicons is the first animated color variable icon font. It is made with two types of technologies: Variable Fonts and Color Fonts. We want to experiment with creating an icon font that combines these two cutting edge font technologies.

Icons

  • menu
  • play
  • favorite
  • thumb_up
  • check
  • notifications
  • edit
  • lock
  • phone
  • search
  • location

Use Anicons in your design projects

You can easily incorporate Anicons into your design projects by installing it onto your machine. When you download the Anicons project files, it comes with static versions of the icon font with two weights: Start and End. The static versions help you plan how you will Anicons in your project.


AniconStatStart
Start shows the icon at the starting stage of the animation

AniconStatEnd
End shows the icon at the ending stage of the animation

Use Anicons on the Web

1. Embed Font

To embed Anicons fonts into a webpage, copy this code into the of your HTML document.

Use the following HTML to embed Anicons Regular:

<link href="https://fonts.googleapis.com/css?family=Anicons+Regular&display=swap" rel="stylesheet">

Use the following HTML to embed Anicons Color:

<link href="https://fonts.googleapis.com/css?family=Anicons+Color&display=swap" rel="stylesheet">

Use the following HTML to embed Anicons Regular and Anicons Color:

<link href="https://fonts.googleapis.com/css?family=Anicons+Regular|Anicons+Color&display=swap" rel="stylesheet">
2. Specify Icon Character in HTML

Use the following HTML to specify the icon character:

<!-- replace “A” with appropriate character.--> 
<div class=”icon”>A</div>
3. Specify Font Family in CSS

Use the following CSS rules to specify the families:

font-family: "Anicons Regular", sans-serif;
font-family: "Anicons Color", sans-serif;
4. Animate

Use the following CSS rules to animate the icon. font-variation-settings provides control over the variable font characteristics, (in our case, time) of our icon font.

.icon {
	font-variation-settings: "TIME" 1;
	transition: font-variation-settings 0.4s ease;
}
.icon:hover {
	font-variation-settings: "TIME" 100;
}

or use @keyframes animation:

@keyframes icon-animation {
	0% { font-variation-settings: "TIME" 1; }
	100% { font-variation-settings: "TIME" 100; }
}
.icon {
	animation: icon-animation .5s ease-in-out infinite;
}

Reference

https://www.harbortype.com/blog/rocher-color-making-a-variable-color-font/
https://glyphsapp.com/tutorials/creating-a-variable-font

anicons's People

Contributors

typogram avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

anicons's Issues

Cannot get the font to animate at all

I've attempted to run the code on my website a few times. While the font functions, the time axis does not ever pass 1.

<!DOCTYPE html>
<html>
  <head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
         <link href="https://res.cloudinary.com/dr6lvwubh/raw/upload/v1581441981/Anicons/anicons-regular.css" rel="stylesheet">
         <link rel="stylesheet" href="variablefonts.css">
  </head>
  <body>
    <style>
    test{
      font-family: "Anicons Regular", sans-serif;
}
@keyframes icon-animation {
     0% { font-variation-settings: "TIME" 1; }
   100% { font-variation-settings: "TIME" 100; }
}
.icon {
   animation: icon-animation .5s ease-in-out infinite;
}
    </style>
    <!-- replace “A” with appropriate character.--> 
    <test class=”icon”>A</test>A
  </body>
</html>

The code above is concatenated from the snippets on the use page. Am I misinterpreting something, or does Google Chrome not support variable fonts yet?

How does one change the color?

I'm not terribly clear on how to change the color of the color font? Does it involve re-compiling these with the brand colors, or is there some parameter that can be specified via CSS that can override the color?

Add LICENSE, AUTHORS, CONTRIBUTORS files

Filing an issue for me to add these via PR :)

  • OFL.txt in master #4
  • LICENSE.txt with Apache in gh-pages
  • AUTHORS in master
  • CONTRIBUTORS in gh-pages
  • AUTHORS in master
  • CONTRIBUTORS in gh-pages
  • master README updated with licensing note
  • gh-pages README created

Scroll issue on Chrome

First: awesome project and website! Love the use of Recursive, too. :)

Problem

When I try to scroll to certain slides/sections of the homepage, it very briefly pauses but keeps moving before I can read or interact with that section, without me scrolling again.

Kapture 2020-02-24 at 14 17 25

It feels like my scroll action is being recorded as multiple actions, then triggering multiple animated scrolls. Maybe this is something a JS debouncing technique could help solve?

Environment

  • macOS 10.15.3 (Catalina)
  • Chrome Version 80.0.3987.122 (currently the latest official build)

Extra context

In Firefox & Safari it's fine – I'm only encourtering this on Chrome.

Strangely, if I have dev tools open specifically to the Console, I don't experience the issue.

I can also avoid the issue if I only use my keyboard arrows to navigate.

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.