Skip to content

Instantly share code, notes, and snippets.

<dependency>
<groupId>com.arcbees.gss</groupId>
<artifactId>gsss</artifactId>
<version>1.0</version>
<scope>provided</scope>
</dependency>
<inherits name="com.arcbees.gsss.animation.Animation"/>
@LarryMatte
LarryMatte / AnimationsResources.java
Last active August 29, 2015 14:23
create an AnimationResources.java file in which...
package com.projectname.project.client.resources;
import com.arcbees.gsss.animation.client.AnimationResources;
import com.google.gwt.resources.client.ClientBundle;
public interface AnimationsResources extends ClientBundle {
interface Style extends AnimationResources.Animation {
}
@LarryMatte
LarryMatte / view.ui
Created June 23, 2015 02:22
2.1 Adding our elements in place
<ui:UiBinder xmlns:ui='urn:ui:com.google.gwt.uibinder'
xmlns:g='urn:import:com.google.gwt.user.client.ui'>
<ui:with field=“anim” type="com.projectname.project.client.resources.AnimationsResources"/>
<g:HTMLPanel>
</g:HTMLPanel>
</ui:UiBinder>
@LarryMatte
LarryMatte / view.ui
Created June 23, 2015 02:23
Create a div and add the .myAnimation
<g:HTMLPanel>
<div class="{anim.style.myAnimation}">
</div>
</g:HTMLPanel>
@LarryMatte
LarryMatte / myStyle.css
Last active August 29, 2015 14:23
add the .myAnimation class
.myAnimation {
background-color: red;
width: 50px;
height: 50px;
}
@LarryMatte
LarryMatte / AnimationResource.java
Created June 23, 2015 02:27
add the .myAnimation() method
package com.projectname.project.client.resources;
import com.arcbees.gsss.animation.client.AnimationResources;
import com.google.gwt.resources.client.ClientBundle;
public interface AnimationsResources extends ClientBundle {
interface Style extends AnimationResources.Animation {
String myAnimation();
}
@LarryMatte
LarryMatte / view.ui.xml
Created June 23, 2015 02:28
add that class to your div
<g:HTMLPanel>
<div class="{anim.style.myAnimation} {anim.style.animation}">
</div>
</g:HTMLPanel>
@LarryMatte
LarryMatte / view.ui.xml
Created June 23, 2015 02:29
we’ll use the one called “.pulse”
<g:HTMLPanel>
<div class="{anim.style.myAnimation} {anim.style.animation} {anim.style.pulse}">
</div>
</g:HTMLPanel>
@LarryMatte
LarryMatte / animations.css
Created June 23, 2015 02:30
the .pulse class has a keyframe
@keyframes pulse {
0%, 100% {
opacity: 0.7;
transform: scale(1);
}
50% {
opacity: 1;
transform: scale(1.1);
}