Wednesday, March 27, 2019

Re: Migrating a css file into gwt uibinder

I never figured out how to add the @keyframes in the GWT resources.  As a workaround, you can add the CSS like you would a standard site.  Eg, in your index.html like this:
<style type="text/css">
 
@keyframes fadeIn {
   
0% { opacity: 0 }
   
100% { opacity: 1 }
 
}
</style>

Then in your ui.xml, you can just refer to it as normal.  Eg:
<div style="animation: fadeIn 1.5s linear;">blah</div>

Not an idea solution.  If anyone knows how to add @
keyframes to the resources, that would be very helpful.

--
You received this message because you are subscribed to the Google Groups "GWT Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscribe@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at https://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment