webtempest / meteor-animate Goto Github PK
View Code? Open in Web Editor NEWEasily perform CSS3 animations and transitions in Meteor.
Easily perform CSS3 animations and transitions in Meteor.
the longMessage helper workers properly but when the showContent helper is true the item just appears - it doesn't do an animation, and if I set showContent to false the content doesn't remove its self from the display and then when showContent is true again the content is duplicated.
<div class="row z-depth-1" style="background-color: white; margin-top: 0; padding: 10px 2px;">
{{#transition in="fadeIn:1500" out="fadeOut"}}
{{#if longMessage}}
<div class="center">
<h1 style="text-align: center;">
Welcome to the Engine
</h1>
<a id="showContent" class="btn" style="">Create your Admin Account</a>
</div>
{{else}}
<h1 style="text-align: center;">
Welcome
</h1>
{{/if}}
{{/transition}}
</div>
<div class="row">
<div class="col s12 m6 offset-l2 l4">
{{#transition in="flipInLeft:1500" out="flipOutRight"}}
{{#if showContent}}
{{> rcSidebar}}
{{/if}}
{{/transition}}
</div>
<div class="col s12 m6 l4">
{{#transition in="flipInRight:1500" out="flipOutLeft"}}
{{#if showContent}}
{{> rcSidebar}}
{{/if}}
{{/transition}}
</div>
</div>
How can i make an animation in a click event?
<button class="sort">Sort</button>
{{#transition in="bounceInLeft" out="bounceOut"}}
{{#each items}}
<li class="animated out">{{> Item }}</li>
{{/each}}
{{/transition}}
I like this package, but I already included animate.css in my application using the SASS version - which gives better control about which animations are actually included, and thus allows me to reduce the file sizes for my mobile app. So I would like to recommend to split this package in two: one for the Meteor side of the implementation, and one for the base animate.css file.
Here you can apply different animations to different elements at the same time?
Mobile animations don't appear to be working correctly (iOS Safari).
It seems that your code is rearranging/moving any new element in a list to the end even the subscription is sorting it the other way around.
Subscription:
//...
return {posts: Posts.find({},{sort:{timestamp: -1}})}
//...
Consumer:
{{#transition in="flipInX" out="flipOutX"}}
{{#each posts}}
<div>
{{message}}
</div>
{{/each}}
{{/transition}}
Everything is fine again once I remove the transition.
Thanks for your really cool package!
In the example, and documentation, static animations only 'animate' when they're first rendered. Is there a way to trigger an animation in response to an event? Say, for example, if I want to apply an in-place shake to incorrectly filled out form fields and when the user clicks the button, the invalid fields animate. Is there a way to do this? Or should I just 'blink' something else to trigger it?
Could you please add a license so that others can use this package? Thanks
If I add these animations to some list tiems and remove an item from the list, does the animation occur after confirmation has come back from Mongo that the document rmeoval was successfull?
Awesome, awesome plugin. Anyone love for reactjs + meteor (& flow router)? :)
I need to run a resize() function which adds a style="height:Xpx" to a div.
This package works really nicely (thanks!) but it also interferes with this function:
Template.companyTweets.onRendered(function() {
this.autorun(() => {
resize();
});
});
The style is no longer applied if I use the package?
What's the best way to time these transitions/animations? Should I force-edit the CSS classes of my respective animations or is there a way to implement that on the API of the package? Basically, my zoomIn and zoomOut transitions are just a tad too slow.
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.