Skip to main content

How to Add a Floating, Fade In Gadget to Your Blog

Today's tutorial was prompted by a question I received in my advice column contact form. :) It read:

I LOVE everything that you did with Ingrid's blog, http://www.smilingrid.com/! When you scroll down, that tabs bar up top pops up is the bomb. Could you please do a tutorial on how to code it?? I have some web designer friends, so don't be afraid to "speak code" as they will explain it to me haha <33


This tutorial is going to be on how to create a floating, fade in gadget (specifically a Blogger pagelist). Let's get started. :)


The instructions.

  1. Select the blog you want to edit.
  2. Make sure you have a pagelist gadget installed on your blog.
  3. Install the following codes to your template.
  4. Save and view your changes.

Javascript:

<script src='http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js' type='text/javascript'/>
<script>
$(document).ready(function(){
// hide #mbz-sidebar-widget first
$(&quot;#PageList1&quot;).hide();
// fade in #mbz-sidebar-widget
$(function () {
$(window).scroll(function () {
if ($(this).scrollTop() &gt; 200) {
$(&#39;#PageList1&#39;).fadeIn();
} else {
$(&#39;#PageList1&#39;).fadeOut();
}
});
});
});
</script>

Place this code above the "</body>"  section in the HTML of your template.

CSS:

#PageList1 { position: fixed;
top: -30px;
left: 0px;
padding-left: 30px;
width: 100%;
z-index: 9;
background-color: white;
height: 55px;
line-height: 35px;
text-transform: uppercase;
box-shadow: 2px 2px 3px #eee;

display: none; }

#PageList1 a { font-family: 'Raleway', sans-serif;
line-height: 3; }

Go to Template >>> Customize >>> Add CSS and paste this code in box.

Easy peasy, right? :)

If you have any comments, questions or concerns, please feel free to contact me.


Comments

Popular posts from this blog

The Best Experience in the History of Experiences

Last week, on September 13th, 2013, two amazing things happened. Niall Horan--of One Direction--turned 20! *sends glittery kisses into the wind* I didn't forget you, baby! I promise! I met up with the most amazing person that has ever come into existence . ^^^ *sniffles* Here is a photo of our good-bye hug. Kenz  added the glitter. ;) My family and I had to drive about three and half hours, to get to our meeting place--which was a beautiful Barnes and Noble full of amazingly exquisite  books [it was quite heavenly]. The whole trip there I was bubbling with excitement. Rocking in my seat, tugging at my hair, belting out the lyrics to any songs I knew when they blasted out of the speakers. I had a little brother to my left, a window to my right and a present in my lap--and a stuffed Pikachu at my feet. o.O Finally , we arrived at our destination. I cannot describe to you the feeling of walking up to that bookstore, and having a someone whom you haven't p...

silver linings

 a post inspired by this lovely photo. [ photo via pinterest ] sitting swinging singing head bowed arms hanging voice low thinking blinking shrinking gears turning eyes wide shoulders slumped where did it all go? * * * She doesn't want to look up, only for her eyes to find the dark and terrible surroundings she calls her world. She doesn't want to go back, to the dwelling where words were spoken and exchanged but never taken back. She doesn't want to sit there forever. But that seems like the best option right now. While she swings, she listens and thinks, sings and sinks, the only company she has is the rag doll under her fingertips. It looks worn--just like her. And torn--again, like her. And used--just. like. her. Yet loved--a foreign feeling that has been wasted. She lifts her head to look up at the dark sky, wishing the clouds would split apart and act merciless upon her. Instead, they seem as if to slowly zip open, lightl...

"it's complete"

[ photo via pinterest ] writing. exhaling words onto paper inhaling the smell of ink scribbling furiously shoulders tensing the pencil stops dead in its tracks words are hard writing ceases days pass by no words are exhaled no ink is inhaled the author is taking a break dreams occur inspiration is sparked writing begins again and it doesn't stop "it's complete" two words that mean so much sentences build paragraphs that build chapters that build a book that build a lesson, a story my lesson to you is || don't ever give up thanks for reading. <3 xoxo, Rose pinterest instagram bloglovin