Linux 软件免费装

CSS3 Transitions

开发者 celloexpressions
更新时间 2017年11月12日 07:51
PHP版本: 3.0 及以上
WordPress版本: 4.9
版权: GPLv2

标签

automatic css3 auto effects ui animate animations smooth transitions eye candy

下载

1.0 1.1 1.3 1.2

详情介绍:

This plugin automatically adds CSS3 transitions to your website/blog and the WordPress admin. Links, etc. get animated transitions between their normal and hover states. CSS3 Transitions are supported by the most recent version of every major browser (Chrome, Internet Explorer 10, Firefox, Opera, Safari); browsers without support will continue to render everything as they had before. This plugin adds the transitions (eye candy) to all <a> (link), <li> (list item, usually used in navigation menus), <img> (image), and <input> (form field and button) tags that have a hover or focus state defined (for example, if links change color when the mouse hovers over them). Other "buttons", form elements, and WordPress-specific selectors are also targeted. Transitions are between .2 and .3 seconds in duration, so they shouldn't cross the line between nice and distracting; however, depending on the colors used in your theme, the transitions may not be noticeable. Also, please note that image sprites simply don't work well with blanket css3 transitions. If you see wierd animations where images scroll between their normal and hover states, they're using sprites. Depending on where the sprites are used, there are various ways to prevent the behavior on those elements, while retaining transitions where desired. One method is to add an inline style attribute to those elements: style="transition: none; -webkit-transition: none;". Adding the css to your theme will override the plugin's css as long as you target the elements using sprites by class or id. Please feel free to offer any feature suggestions you might have and I will consider them for future releases. CSS3 Transitions UX Theory Because of the way our brains process images, in simple terms, instant/sudden changes are generally not as well perceived as more gradual ones. In the physical space, we never see instant changes, like slides changing with no animation in a PowerPoint, but with digital technology this is a very common practice. When websites make use of hover states, for example, if a link changes color when the mouse hovers over it, they exhibit small, but instant visual changes. Adding the css3 transitions makes these changes more gradual, and therefore easier on the eye. For this same reason, operating systems now tend to make use of a lot of animations. There's a lot of neuroscience behind these concepts, but I'm not well versed in that. Basically, slight animations generally look better than instant changes. Some people will argue that things aren't as "snappy" or seem slugish with transitions, but if that's the case, it's only a matter of adjusting the animation timing function and duration.

安装:

  1. Take the easy route and install through the WordPress plugin adder OR
  2. Download the .zip file and upload the unzipped folder to the /wp-content/plugins/ directory
  3. 通过WordPress的的“Plugins”菜单激活插件
  4. CSS3 transitions should automatically be added to your site and WordPress, as long as your theme has the <?php wp_head() ?> action hook

升级注意事项:

1.3
  • Better animation timing function, faster animations, cleanup browser prefixes

常见问题:

The Transitions Aren't Working...

First, make sure you know what the transitions look like (and you need to be using a mouse, not touch, for the majority of them, although they will show up for things that have css changes because of javascript too). Then, make sure that you are using a supported browser (Chrome, Internet Explorer 10+, Firefox 16+, Opera 12+, Safari 4+). Next, make sure that your theme's links have a different color or other effects when you mouse over them. This is the change that will be animated. Then, make sure that your theme's header.php file contains the <?php wp_head() ?> action hook. If none of that works, it's likely that your theme doesn't support transitions or has explicitly blocked them. However, you should still get the effects in the WordPress admin area if your browser supports them.

Where's the settings page?

For simplicity's sake, no settings page is included. While there are a few potential options, I don't feel that they would be worth the extra bloat of a settings page. If you would like to make adjustments (such as changing the animation duration), you may do so by editing the plugin's php file.

更新日志:

1.3 1.2 1.1 1.0