mirror of
https://github.com/InsanusMokrassar/JSUIKitKBindings.git
synced 2025-11-13 18:40:29 +00:00
global changes in packages
This commit is contained in:
63
src/main/kotlin/dev/inmo/jsuikit/modifiers/UIKitAnimation.kt
Normal file
63
src/main/kotlin/dev/inmo/jsuikit/modifiers/UIKitAnimation.kt
Normal file
@@ -0,0 +1,63 @@
|
||||
package dev.inmo.jsuikit.modifiers
|
||||
|
||||
sealed class UIKitAnimation (name: String) : UIKitModifier, AttributeValue(name) {
|
||||
override val classes: Array<String> = arrayOf("uk-animation-$name")
|
||||
|
||||
object Fade : UIKitAnimation("fade")
|
||||
|
||||
sealed class Scale(suffix: String) : UIKitAnimation("scale-$suffix") {
|
||||
|
||||
object Up : Scale("up")
|
||||
object Down : Scale("down")
|
||||
|
||||
}
|
||||
|
||||
sealed class Slide(suffix: String) : UIKitAnimation("slide-$suffix") {
|
||||
|
||||
sealed class Top(suffixWithStroke: String) : Slide("top$suffixWithStroke") {
|
||||
|
||||
object Small : Top("-small")
|
||||
object Medium : Top("-medium")
|
||||
|
||||
companion object : Top("")
|
||||
|
||||
}
|
||||
|
||||
sealed class Bottom(suffixWithStroke: String) : Slide("bottom$suffixWithStroke") {
|
||||
|
||||
object Small : Bottom("-small")
|
||||
object Medium : Bottom("-medium")
|
||||
|
||||
companion object : Bottom("")
|
||||
|
||||
}
|
||||
|
||||
sealed class Left(suffixWithStroke: String) : Slide("left$suffixWithStroke") {
|
||||
|
||||
object Small : Left("-small")
|
||||
object Medium : Left("-medium")
|
||||
|
||||
companion object : Left("")
|
||||
|
||||
}
|
||||
|
||||
sealed class Right(suffixWithStroke: String) : Slide("right$suffixWithStroke") {
|
||||
|
||||
object Small : Right("-small")
|
||||
object Medium : Right("-medium")
|
||||
|
||||
companion object : Right("")
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
object Shake : UIKitAnimation("shake")
|
||||
|
||||
object Stroke : UIKitAnimation("stroke")
|
||||
|
||||
object Reverse : UIKitAnimation("reverse")
|
||||
|
||||
object Fast : UIKitAnimation("fast")
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user