General mailing list for discussions and development of PeerLibrary and related software.

List archive Help


[PeerLibrary dev] Landing and search page


Chronological Thread 
  • From: Mitar < >
  • To: PeerLibrary development < >
  • Subject: [PeerLibrary dev] Landing and search page
  • Date: Tue, 20 Aug 2013 04:13:30 -0300

Hi!

(Welcome all to the development mailing list.)

Just pushed new version of the landing and search page. Now it
transitions nicely. We should not be using jQuery to modify DOM or
change classes on the elements, but this can be done through Meteor by
defining reactive variables which are then output as CSS class names
into the templates. For example:

<template name="foobar">
<div class="{{something}}">Some text</div>
</template>

Then in the code:

Template.foobar.something = ->
'class-name' if Session.get 'someVariable'

And then in CSS:

.class-name
display: none

For animations between those CSS class changes hopefully CSS3
transitions can be used.


Mitar

--
http://mitar.tnode.com/
https://twitter.com/mitar_m


  • [PeerLibrary dev] Landing and search page, Mitar, 08/20/2013

Archive powered by MHonArc 2.6.18.

Top of page