Hi, I am making general 
coverflow/carousel<https://github.com/konsumer/angular-cardflow> directive 
(demo <http://konsumer.github.io/angular-cardflow/>)

For now, I just have 1 mode (swipe to advance.)

I have an ugly hack in the 
CSS<https://github.com/konsumer/angular-cardflow/blob/master/examples/cardflow.css#L57>,
 
where each of the cards is left-positioned card-number * actual-card-width. 
This is obviously not scalable, and I would rather do it at the moment when 
all the transcluded content is filled in. I did this because I don't have 
access to element.children().children() (cards) in the directive's link, 
when it's loaded. If I can detect the width of the card (as I do in the 
swipe functions) in the early stage, I think I could programmatically set 
left offset.

Maybe I am thinking about this wrong, I am sort of new to Angular. Can 
anyone make any suggestions to fix, or have ideas of how to think about 
this better?

Thanks

-- 
You received this message because you are subscribed to the Google Groups 
"AngularJS" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/angular.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to