This is a Simple Link nudge Effect tutorial.You can add this to links in your Blog.While Mouse over the link a simple animation works.This can be done through two methods.You can use any one of these.
Live Demo of Link nudge is following
Check out more Blogger Tips and Spice your blog tips
- Through CSS3 .
- With jQuery Effect.
Live Demo of Link nudge is following
Link Nudge Using CSS3
- Go to Blogger Account
- Design -> Edit HTML
- Find ]]> and copy the below code BEFORE it
.noopln {
-moz-transition: all 0.1s ease-in 0s ;
-webkit-transition: all 0.1s ease-in 0s ;
-o-transition: all 0.1s ease-in 0s ;
}
.noopln:hover {
margin-left: 12px;
}
- Save it.
- If you want link nudge effect to a link add class noopln to each link
Eg: BloggerIf you want this Link Nudge Effect to labels follow the steps below
- Go to Design->Edit HTML
- Find and copy the following code BEFORE it
.noopln,Label li,#Label1 ul li a,.Label li a {
-moz-transition: all 0.2s ease-in 0s ;
-webkit-transition: all 0.2s ease-in 0s ;
-o-transition: all 0.2s ease-in 0s ;
}
.noopln:hover,Label li:hover,#Label1 ul li a:hover,.Label li a:hover {
margin-left: 14px;
}
- That's all the Link Nudge with CSS3
Link Nudge using jQuery
Step 1: Add jQuery plugin (if your blog have a jquery plugin,ignore this step)Step 2 :Adding jQuery script for Link Nudge
- Sign In to your Blogger Account
- Go to Design->Edit HTML
- Find and copy below code snippet BEFORE it
- Save it
Eg: Your Link
If your link already have a class then add this class after a space.
Eg: Your Link
The above jQuery code snippet is also work with your Labels,If you don't need Link Nudge effect to your labels then delete the red blinking highlighted code in it.
And Save the Template
Its almost finished,If you enjoyed this article share and like us.Check out more Blogger Tips and Spice your blog tips
No comments:
Post a Comment