yesiamrocks / cssanimation.io Goto Github PK
View Code? Open in Web Editor NEWCSS Animation Library for Developers and Ninjas
Home Page: https://cssanimation.io/
License: MIT License
CSS Animation Library for Developers and Ninjas
Home Page: https://cssanimation.io/
License: MIT License
Hi, why is this library not published as an npm package?
the letter animation JS should be changed from getting the innerHTML to getting the innerText and filter out the tags that are not text as if you have let's say an icon in the div till be displayed with all the tags etc
I changed mine to this and works well (needs a bit tweaking it's just for the idea)
function animateSequence() {
var a = $('.sequence');
for (var i = 0; i < a.length; i++) {
var $this = a[i];
var letter = $('.sequence').not($('.sequence').children()).text()
letter = letter.trim();
var str = '';
var delay = 100;
for (l = 0; l < letter.length; l++) {
if (letter[l] != ' ') {
str += '<span style="animation-delay:' + delay + 'ms; -moz-animation-delay:' + delay + 'ms; -webkit-animation-delay:' + delay + 'ms; ">' + letter[l] + '</span>';
delay += 150;
} else
str += letter[l];
}
$this.innerHTML = str;
}
}
function animateRandom() {
var a = $('.random');
for (var i = 0; i < a.length; i++) {
var $this = a[i];
var letter = $('.random').not($('.random').children()).text()
letter = letter.trim();
var delay = 70;
var delayArray = new Array;
var randLetter = new Array;
for (j = 0; j < letter.length; j++) {
while (1) {
var random = getRandomInt(0, (letter.length - 1));
if (delayArray.indexOf(random) == -1)
break;
}
delayArray[j] = random;
}
for (l = 0; l < delayArray.length; l++) {
var str = '';
var index = delayArray[l];
if (letter[index] != ' ') {
str = '<span style="animation-delay:' + delay + 'ms; -moz-animation-delay:' + delay + 'ms; -webkit-animation-delay:' + delay + 'ms; ">' + letter[index] + '</span>';
randLetter[index] = str;
} else
randLetter[index] = letter[index];
delay += 80;
}
randLetter = randLetter.join("");
$this.innerHTML = randLetter;
}
}
Awesome package!
I'm wondering whether it is in the todo list
yarn add
way of installing it<FadeFromLeft>my awesome copy</FadeFromLeft>
Thanks 🙌🙌🙌
using any class my all html code display on screen
animation-iteration-count: infinite !important
Not working as expecting
there are 304 animations , it's very cool , and also a little hard to choose which one should i use.
the demo from https://cssanimation.io/index.html stuck a little when switch between others ,
i have no idea about how to make it more smooth when using it, just make a feedback :)
also i found the article from the web:
https://medium.com/outsystems-experts/how-to-achieve-60-fps-animations-with-css3-db7b98610108
thanks for these good things 👍
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.