how can i slide div's programmatically in Ionic framework?

how can i slide div's in ionic framework pro grammatically using some flag? For ex. if i have two div's

<div>
 div 1
</div>

<div>
 div 2
</div>

i want to slide these two div's one by one , based on some flag .

You could use the SlideBox and then with the $ionicSlideBoxDelegate

If you can use selectors to identify the div, you can then call $ionicSlideBoxDelegate's slide(to, [speed]). method.

Hope this helps