AssistoLab / DropDown

A Material Design drop down for iOS
MIT License
2.44k stars 624 forks source link

Make it even more material! #58

Open Sweeper777 opened 8 years ago

Sweeper777 commented 8 years ago

I am not quite sure about what this is called, but I think it's called material ripple effect or something...

At the moment, when someone taps on a drop down menu item, the menu item just darkens without any animation. But as you can see in the Youtube app, the menu items behave differently. The shade is animated. It first starts at where your finger is, then it quickly expands to fill the whole item.

To see the animation, open the Youtube iOS app on a phone, then tap the three dots on the top right corner. Then an action sheet kind of thing appears at the bottom of the screen. If you tap and hold one of the items, you will see the animation. The cool thing about this is that if you tap on the right of the item, the dark color will spread to the left. If you tap on the left, the dark color will spread to the right. And if you tap in the middle, the dark color spreads both sides.

Can you add this to the pod as well?

Sweeper777 commented 8 years ago

I have found an image showing the animation: https://raw.githubusercontent.com/nelsoncash/angular-ripple/gh-pages/click.gif