Solved

JQuery slide effect

Posted on 2013-11-04
1
148 Views
Last Modified: 2014-11-14
Hi,

I have a list of 6 client logos which i have changed so that they have jquery popups as you hover over them.

http://www.bluebean.org.uk/sites/bigcreative/

I have them working but as floated <a> links. The issue i have is that the box appears above the centre of each one, so if you hover over the first or last logo then the box could be cut off by the screen, depending on how its being viewed. Is there a way i can prevent this also add in the same effect that is used on the bottom of the following page, so it follows the cursor and has a bounce to it?

https://www.tsohost.com/

Thanks,
0
Comment
Question by:Andy6350
1 Comment
 
LVL 52

Accepted Solution

by:
Scott Fell,  EE MVE earned 500 total points
ID: 39624242
Instead of reinventing the wheel as they say, I have used qtip for a number of years http://qtip2.com/   There is a function to keep the tip inside the viewport http://qtip2.com/plugins#viewport

$('.selector').qtip({
    content: {
        text: 'If I go off-screen, my positioning corners will adjust. Resize your browser window to see!'
    },
    position: {
        viewport: $(window)
    }
});

Open in new window


You can style the tip as you like with css.   It is worth checking out.
0

Featured Post

3 Use Cases for Connected Systems

Our Dev teams are like yours. They’re continually cranking out code for new features/bugs fixes, testing, deploying, testing some more, responding to production monitoring events and more. It’s complex. So, we thought you’d like to see what’s working for us.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

DOM Attributes and Properties treatment with jQuery 1.6 by Ivo Stoykov jQuery (http://jquery.com/) 1.6 introduces .prop() (http://api.jquery.com/prop/) and .removeProp() (http://api.jquery.com/removeProp/) methods which allow modifying or removi…
Introduction Got endorsements from your clients?  Great!  There is almost nothing better than word-of-mouth advertising.  But how can you do that on the internet?  Sure you can make a page for endorsement quotations and list them all, but who is …
The viewer will learn the basics of jQuery, including how to invoke it on a web page. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery.: (CODE)
The viewer will learn the basics of jQuery including how to code hide show and toggles. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery…

770 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question