ProgressNS / nativescript-ui-feedback

This repository is used for customer feedback regarding Telerik UI for NativeScript. The issues system here is used by customers who want to submit their feature requests or vote for existing ones.
Other
115 stars 21 forks source link

Radlist View collapsible item animation #1320

Open vikasacharya16 opened 4 years ago

vikasacharya16 commented 4 years ago

I have raised an issue relating to animation of collapsible views on tap of radlistview items. stackoverflow

i achieved relatively close animation somehow kindly look at this, https://play.nativescript.org/?template=play-js&id=jJqwjY&v=4

@keyframes animation {
    from { 
        height: 0;
        overflow:hidden;
        background-color: gold;
        transition: height 1s ease;
    }
    100% { 
        transform:   translate(0,0);
       /* height: auto */ // This is also not working
        height: 100px; } // HOW TO GIVE HEIGHT DYNAMICALLY HERE
}

because of hard-coded height i'm not getting accordion effect as different elements have different heights.

I need a way to animate collpasible items based on its current height. So, i request you people to make height: auto should give expected result in such cases.