javascript - Animating live changes in meteor issue -


i trying animate each time post.text updated in meteor using percolate:momentum (i have tried other plugins didn't work either). post.text updates fine, not animate - not sure doing wrong :s

js

template.textdisplay.helpers({   post: function () {     return mongodatabase.findone({}, { sort: { date: -1} });   } });  mongodatabase.insert({   text: message,   date: new date() }); 

html

<template name="textdisplay">    {{#momentum plugin='right-to-left'}}      {{post.text}}  {{/momentum}}    </template> 

@peter looking @ code seems percolate:momentum support multiple elements collection.find() cursor @ least 2 elements works fine. made simple jquery use of fadein() show how can use jquery animate http://meteorpad.com/pad/32rhhkm6nmdxsstt4/copy%20of%20test

you can try open github issue percolate:momentum maybe have work around or find different library? if it's single element it's easy use jquery this. there should different animation package works 1 element. helpful.


Comments

Popular posts from this blog

html - Outlook 2010 Anchor (url/address/link) -

javascript - Why does running this loop 9 times take 100x longer than running it 8 times? -

Getting gateway time-out Rails app with Nginx + Puma running on Digital Ocean -