Workflow Form Element Transition and Animation Effects with CSS

Here’s a short post on how to achieve transition effects with CSS in your Workflow forms.  First, a couple of examples:

Symantec Workflow CSS Transtitions on Forms
This transition effect is based on the two states of the element having different opacities as well as height, width, and visibility.

Another:

Symantec Workflow CSS Transtitions on Forms
256-color .gif files don’t really help illustrate subtle color changes.

Try it in CodePen:

The pertinent CSS for this, converted to :hover instead of clicking the named labels:


.gaButton {
width: 80px;
height: 25px;
text-transform: uppercase;
font-family: Verdana, Serif;
font-size: 14px;
letter-spacing: .5px;
border: none;
text-align: center;
color: white;
background-color: #9c3030;
outline: none !important;
padding-bottom: 2px;
cursor: pointer;
-webkit-appearance: none;
border-radius: 0;
-moz-transition: all 300ms ease;
-webkit-transition: all 300ms ease;
-o-transition: all 300ms ease;
transition: all 300ms ease;
}

.gaButton:hover {
background-color: #4d676f;
-moz-transition: all 2s ease;
-webkit-transition: all 2s ease;
-o-transition: all 2s ease;
transition: all 2s ease;
}

The transition property is the crux of this demo.  Don’t limit your testing with this to pseudo-classes like :hover though; you can apply and swap classes with javascript functionally within your forms, which remarkably expands the possibilities for this.


Additional Reading:

Using CSS in Workflow Forms

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s