Created
          January 26, 2020 17:38 
        
      - 
      
- 
        Save zsoltk/41ffa1e3c6aeba287cc11f728fa210e2 to your computer and use it in GitHub Desktop. 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | private val rotation = FloatPropKey() | |
| private val definition = transitionDefinition { | |
| state(0) { this[rotation] = 0f } | |
| state(1) { this[rotation] = 360f } | |
| transition { | |
| rotation using repeatable { | |
| animation = tween { duration = 1000 } | |
| iterations = Infinite | |
| } | |
| } | |
| } | 
  
    Sign up for free
    to join this conversation on GitHub.
    Already have an account?
    Sign in to comment