MyBB Tutorials

Shaking Logo Effect

Submitted by linkzy, , Thread ID: 50

Thread Closed
15-01-2015, 07:50 AM
This post was last modified: 15-01-2015, 08:04 AM by Aoki
#1
This tutorial shows how to add the effect of your logo shaking when someone hovers over it.

First step is to navigate to your ACP>Templates & Style>Themes>your current theme>global.css and add this code:


Code (Text):
Content locked
This content has been locked. Please login or register in order to unlock it.


Next we need to assign the class we just added (shake) to the logo. Navigate to ACP>Templates & Style>Templates>your current theme>Header Templates>header and find the reference to your logo and add class="shake" to that line. Example below:





PHP Code:
[URL="http://yoursite.com"][IMG]{$theme['logo']}[/IMG]settings['bbname']}" title="{$mybb->settings['bbname']}" />[/URL] 


Save and refresh your forum to test effect. Note: the shake effect can be add to most images on forum if you want, just experiment with adding the class="shake".
| A | v4hl| Addicted | Senpai | Sui | Sensei | H | fdigl |



Users browsing this thread: 3 Guest(s)