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

java - WARN : org.springframework.web.servlet.PageNotFound - No mapping found for HTTP request with URI [/board/] in DispatcherServlet with name 'appServlet' -

android - How to create dynamically Fragment pager adapter -

1111. appearing after print sequence - php -