Slider-Pushover Widget

Sometimes a designer hands you something that looks a little bizarre in static form. Then they tell you about how it’s supposed to behave and you think “awesome!” right before you think “Oh crap — How do I make it do that?” Such was the case with the sider pushover widget.

You can see the stripped-down end result here http://abbysdoor.com/work_samples/left-to-right-slide-pushover/

It’s primarily a CSS solution. There is one teeny tiny bit of jQuery doing the actual animation toggle, but the real key that makes this function is the use of a certain group of CSS properties, including:

  • white-space: nowrap; on the outer container
  • display:inline-block; on the left and right container wrappers
  • overflow: hidden; on the expandable content

There’s also a clever negative margin (I usually don’t approve of negative margins but it was the simplest way to do this) that helps out with the dynamic border in between the two containers. Totally optional, of course, but it was part of the reason that there were so many wrappers/containers in this widget.

This code is compatible in all major browsers, including IE7+. I also have a version where you can plug in two Backbone.js views.

Tagged with: , ,
Posted in Career, Code for Fun
0 comments on “Slider-Pushover Widget
37 Pings/Trackbacks for "Slider-Pushover Widget"
  1. … [Trackback]…

    […] There you will find 31159 more Infos: abbysdoor.com/slider-pushover-widget/ […]…

  2. … [Trackback]…

    […] Find More Informations here: abbysdoor.com/slider-pushover-widget/ […]…

  3. … [Trackback]…

    […] Read More: abbysdoor.com/slider-pushover-widget/ […]…

  4. … [Trackback]…

    […] Read More Infos here: abbysdoor.com/slider-pushover-widget/ […]…

  5. … [Trackback]…

    […] Read More: abbysdoor.com/slider-pushover-widget/ […]…

  6. … [Trackback]…

    […] Read More Infos here: abbysdoor.com/slider-pushover-widget/ […]…

  7. … [Trackback]…

    […] There you will find 42322 more Infos: abbysdoor.com/slider-pushover-widget/ […]…

  8. ceramic tile says:

    … [Trackback]…

    […] Read More here: abbysdoor.com/slider-pushover-widget/ […]…

  9. phentermine says:

    … [Trackback]…

    […] Informations on that Topic: abbysdoor.com/slider-pushover-widget/ […]…

  10. … [Trackback]…

    […] Read More here: abbysdoor.com/slider-pushover-widget/ […]…

  11. Krazy says:

    … [Trackback]…

    […] Read More: abbysdoor.com/slider-pushover-widget/ […]…

  12. … [Trackback]…

    […] Read More Infos here: abbysdoor.com/slider-pushover-widget/ […]…

  13. is to sale products and services online…

    and what it takes to convince a prospective buyer. customers generally prefer to have post-sales services so that sustainability of their products can be ensured.most of the customers look for a designer who provides credible after-sales services. like…

  14. the top of the search engine results,…

    then quality may not be what you need. instead, focus on quantity of material. bottom line: if search engine spiders are going to encounter these articles more often than human beings, quality can take a back seat to quantity.however, if your…

  15. mention you will pick one best answer…

    from reader comments – this will encourage healthy competition and worthwhile blog responses that are on topic, instead of the standard ‘great post.’ for example, a health blog can have raise the question ‘what is your view on legalizing marijuana?…

  16. a wide variety of topics.racismwhew, this one…

    is always a hot topic. you’ll be able to find plenty of ideas on blogging in this arena, you can take a human rights perspective or write about the history to present-day social injustice as it relates to racism. this hot…

  17. more says:

    … [Trackback]…

    […] Read More here: abbysdoor.com/slider-pushover-widget/ […]…

  18. day! more than just being a hobby,…

    it would be more wonderful if you would earn money with the time you spend with the best blog sites. to know more about earning through blogs, read this article.you can earn money in many ways with your blog. these ways…

  19. … [Trackback]…

    […] Informations on that Topic: abbysdoor.com/slider-pushover-widget/ […]…

  20. and error over a long period of…

    time. there is a specific type of content for specific business writing, for example, the elements that must go into a thank you letter are not the same for a letter of resignation. individuals will become a skilled writer only writing…

  21. include a link to your website with…

    every submission.bloggingyou website has galleries, a contact page and perhaps some other important content. now let’s get your potential customers interested in what you have to say on a daily basis by building a blog.search out blogs that have conte…

  22. readers. this improves comments, interaction and involvement…

    on your blog.attribution – your blog may have an attribution or copyright statement at the bottom of the page, but to make sure your readers understand that sharing the link to your blog or directing people to the blog is very…

  23. m88 says:

    will not get readers when you get…

    a big flash on your screen warning: malware. let your readers comment on your posts, if you don’t want anonymous comments, moderate them before allowing to publish, or set your settings to subscribers only, or members. however, if you restrict your…

  24. people your crafting your message for.so master…

    these steps for how to do a blog post that gets ranked by search engines.pick the right keyword – high demand keywords are searched more than 1,000 times both globally and locally per month.you find this using google’s keyword tool external….

  25. description says:

    clutteryour sidebar is useful for navigation and…

    sharing some information about your blog. sometimes blogs have a couple of sidebars but usually just one. the sidebar is used to help user navigate through the site, but some webmasters tend to make their sidebars messy with overcrowded widgets, add-on…

  26. plan should keep this fact in mind….

    such drastic reduction in some hormones may reduce the metabolism rate temporarily for a woman and hence during this period it would be better to put her on a diet that is low on carbohydrates and fats. it would be better…

  27. her response says:

    few days. i choose the 100% powder…

    with no other ingredients just to be sure that it was the d-mannose which was working. i now take a maintenance dose of â½ teaspoon once daily along with supplements that support the urinary tract system like cranberry tea containing uva…

  28. dollars into promoting the book but because…

    of positive word-of-mouth. one or two people took a chance on the book and enjoyed it and they told their friends, who also read the book and told their friends, and a lot of those people even bought multiple copies of…

  29. to remember then you will unfortunately be…

    losing upcoming traffic for your blog. taking in mind that it is much easier when you advertise your blog, you would like people around the world to remember your blog name when taking a glance at your ad. your domain name…

  30. to know. when you sit down to…

    write a blog post your blog is already formatted and laid out a certain way. that leaves you with a few choices to make in how you layout your blog posts. to layout a good blog post it is important to…

  31. have much competition.10 benefits of – lists…

    for some reason always do well with user clicks. one reason could because the information about the product is broken down into simple points, and the easier something is to read, to more likely that someone will want to read it….

  32. … [Trackback]…

    […] Find More Informations here: abbysdoor.com/slider-pushover-widget/ […]…

  33. you good search engine traffic, so you…

    can’t go wrong with the seo aspect of things. but try it out for yourself and see which one you like best. do it now.good luck with using blogging in your business today. do you like blogging? i do. blogging is…

  34. 2009this ode to “the maestro” townes van…

    zandt is a true labour of love. the 15 songs feature guests as diverse as tom morello (rage against the machine) and even a duet with steve’s son, a fine singer/songwriter in his own right, justine townes earle. all the classic…

  35. place to explore the numerous websites in…

    it. majority of these sites are business sites that contain business blogs. if you are new in this field, there are many ways on how to be fond of it and somehow easy for you to get familiarize and be found….

  36. Popcorntime says:

    empty calories that can even be eliminated…

    from your diet for faster weight loss. fill up on fresh fruits for snacks, salads for entrees, and drink water before meals. eat a handful of nuts occasionally for snacking. the average woman should eat around 1700 calories daily. this number…

  37. that you’ve consulted on the side in…

    an unrelated field?you’ll want to keep unrelated, potentially confusing information to yourself during a job search. employers often look for a direct tie-in to specific requirements, and extra information can distort your message.dates can also work …

Leave a Reply