Skip to content

Instantly share code, notes, and snippets.

@shemnon
Created May 20, 2009 13:46
Show Gist options
  • Save shemnon/114819 to your computer and use it in GitHub Desktop.
Save shemnon/114819 to your computer and use it in GitHub Desktop.
// in a griffon view
// with the hypothetical TridentBuilder adding the animate node
frame( title: "Trident+Groovy", size: [400,200],
locationRelativeTo: null, visible: true ) {
flowLayout()
button = button("Sample",
foreground: animate([Color.BLUE, Color.RED], duration:2500, id:'tl'),
mouseEntered: {tl.play()},
mouseExited: {tl.playReverse()})
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment