evgenyneu / Bubble Button Animation Ios Swift
Demo iOS app showing button animation
Stars: ✭ 63
Programming Languages
swift
15916 projects
Bubble button animation demo iOS app
This demo app shows how to apply spring style animation to a button.
Animation is done by setting Scale
transform to the button inside animation block. This demo app allows to tweak duration
, damping
and velocity
parameters of the animation function.
button.transform = CGAffineTransform(scaleX: 0.1, y: 0.1)
UIView.animate(withDuration: 2.0,
delay: 0,
usingSpringWithDamping: 0.2,
initialSpringVelocity: 6.0,
options: .allowUserInteraction,
animations: { [weak self] in
self?.button.transform = .identity
},
completion: nil)
Credit
The Large Bubble Sound clip is taken from soundbible.com and recorded by snottyboy.
Note that the project description data, including the texts, logos, images, and/or trademarks,
for each open source project belongs to its rightful owner.
If you wish to add or remove any projects, please contact us at [email protected].