I was adding some BlindDown, BlindUp animation effects to something I was working on today with Scriptaculous and had a bit of an issue with jerky animation. I’ve had this before and ended up ditching them but never really investigated why sometimes they are smooth as nobody’s business and others not.
As it happened, today, I had it working nicely, made a change, and the issue arose, thus leading me to the cause.
It turns out that if you add a BlindDown or BlindUp animation to a div that has padding or a margin set in its CSS as the effect begins to execute the div jumps to the padding/margin size and then the BlindUp/BlindDown (or probably others but I haven’t investigated) works on the remaining ‘area’ of the element.
So this is jerky:
<script language="javascript" type="text/javascript"> Effect.BlindDown("divJerky"); </script> <div style="height:50px; padding:10px; display:none" id="divJerky"> </div>
The solution is this:
<script language="javascript" type="text/javascript"> Effect.BlindDown("divJerky"); </script> <div style="display:none" id="divJerky"> <div style="height:50px; padding:10px"> </div> </div>
If you add the padding to an ‘inner’ div all is well in the world again and everything works smoothly…
I know this isn’t exactly astrophysics but it is Friday afternoon and I’ve only just realised what the issue was so I thought I’d share…
Have a good weekend 🙂
Oh my god! Thank you so much for “stumbling” over the cause and resulting fix to this problem… it has plagued me for months.
You’re welcome… I’m stuck on another one myself now where the animation jerks if there is a button within the div. I’ve not solved it yet but will be sure to update this when I do…
Graham
I just tried what you instructed and it seems that the “height” property is actually makes the change! Note if you remove “height” from the style assignment, there’s still a little clunk at the end, but if you remove padding it’s still smooth. Could be my application… but either way is a solution!
Any other reason you stopped using scriptaculous? I just started using it yesterday and I’d like to know if there’s something better so I don’t get really far into it before realizing it sucks 😛
Thanks,
Adam
Hi Adam…
Thanks for dropping by. You might be right about the height, I’ll have to have a look.
As for your second point I think Scriptaculous is a great library but not without its issues. I’ve been using jQuery for a while now and found it to be much better. It is tiny, really flexible and has a plug-in architecture that results in loads of additional functionality if you want it. I’d really suggest you have a look at that before you get too into Scriptaculous. (http://jquery.com/)
Have fun
Graham
Thanks so much for this solution. You are a prince among men.
Just what I was looking for. Thanks.
I have a jerky effect when the blind down tag is an ordered list
or when the is inside the blind down tag. In firefox the list initially appears lower that it actually is; when the blinddown has finished it jumps upwards to the correct position (about 20px). the list b Haven’t found a way to fix this yet. Any ideas?
Nico
Hi Nico
Have you tried wrapping it in a div and using that for the blinddown?
Graham
“Have you tried wrapping it in a div and using that for the blinddown?”
Yes. Also I tried removing all styles. No success.
Pure gold!
I’ve got all over the shop now, but she’s smooth. For me, there was a with width, which I had to move into an inner div.
Also, The jerks didn’t seem to be present in MSIE6, just Safari and FFx (3 in both cases)
JQuery does seem to have the momentum at the moment, pity it’s not just included in your rails apps for free.
Foolish of me to think that HTML tags would not get eaten in a blog comment, what I meant to say was:
“I’ve got divs all over the shop now, but she’s smooth. For me, there was a td with width, which I had to move into an inner div.”
the rest held up OK
Also found that if, in your container, there’s an element that has a margin or padding top, it’ll mess up.
Example:
div
h4 Title /h4
/div
Will cause the jump unless the h4 has padding-top:0 and margin-top:0;
Thanks, helped me to fix the problem.
أتمنى ان تفيدونا بالجديد
Your site is amaizing. Can I share some resources with you? homecoming and prom dresses postaroo love by keysha cole hairstyles of vidal sassoon grampland m4 machine gun chronic cryptic tonsillitis precious moments coloring pages how to catch nightcrawlers 220 volt wiring diagram 34c breasts how to build a racing lawn mower college dunk contest jodie sweetin nude cartoon pictures snoopy young tots erect tifa lockheart hentai water ridge faucets pantera tabs how to kill carpenter ants
I like your website alot…its lots of fun… you have to help me out with mine… stacy kiebler nude emery yoshikawa 204 ruger hilary duf homens nus tess daly in thong colt m4 carbine lisa lipps gallery marg helgenberger nude amature curves ghetto bootie cordovox accordion poolside giovanni momcinema curly willow trees addware krista allen emmanuelle pinoy scandal nubiles megan protest songs of the 60s
I like this site! pirate skull tattoos cinaplex odeon i can do all things through christ who strengthens me reinhart motorcycle exhaust johan paulik clips canada people finder wardrobe malfunction india pros and cons on gun control wfsb galilea montijo cojiendo kirsten imrie pictures ps2 cheatcodes famous snowboarders mirar toolbar uninstall 17tahun analysis the snows of kilimanjaro sunporn blackzilla leeza down prom hairdos lax meltdown
Great. Thanks! symptoms of clogged arteries ranchi bbs gateway how to wear a toga hentairella side effects of shrooms organized crime in the 1920s pornocook owner finance land asheville nc john deere 5 sickle mowers was hamlet insane disadvantages of fossil fuels tiny blacks adventures deadwood phrases batman and robin sayings wingmen mc friesland cows how to tuck and roll upholstery labeled diagram of the muscular system my first sex teachercom maple story vacuum hack clues easter egg hunt downloadfreemovies maturewomen tony robbins divorce melyssa ford nude guba skin video celebrities in diapers neopets darkest faerie walkthrough serialbox aaliyah celebrity morgue
Very interesting and professional site! Good luck! ct escorts maya human sacrifices hogtied and tormented girls facts about the starfish undertakers wwe entrance music natalie raitano nude prognosis of liver cancer secondary shockrooms raquel welch topless shawn white snowboarder mongols motorcycle gang gkc theaters buffy fakes floridadoubled wedmd les miserables script rey mysterio 619 song woman squeeze testicles diablo ll walkthrough eden mor pics tied to bedposts free woodworking plans freewoodworkingplans chevy 350 crate motors chaste cunt confirmation verses family guy wav files adultsites atlanta booty shack weed eater replacement parts anjali kara
I am here to say hello and you have a great site! dailyamateurchix tahoe intermediate steering shaft problems dogfart 529 movie lucy noland excretory system diseases relafin semi truck headache racks lucy pinder happyhentai summary of neighbors by raymond carver conjuros hechizos brujeria maiden4u different kinds of ecstasy pills m1 garand rifles for sale bowman2 myriel brechtel installing wonderboard list of san quentin death row inmates girls queefing bdsmlibrary
Hey man…sorry I missed the party. nonude model candling duck eggs habbo hotel scripting programs everykindofpeople how to write a vignette margot fonteyn free printable doll birth certificates gogal zorbabes tractor junk yards ruger arms tennie boppers kristine debell naked mature daddies interesting facts about helen keller pro hopper hydraulics picture of std and crabs traveling tailand sylva koscina rastafarian symbols
Holla and Happy Thanksgiving. stages of pregnancy in horses school caning stories pictures of eye floaters walt disney the scarecrow how many teaspoons in a tablespoon imageboard sandra free knifty knitter patterns sisterhood poems how to make an obd2 scanner otis offender search examples of cliches notpron walkthrough climograph paint color swatches toilet plumbing diagrams mustang junk yards breast expansion morphs caroline flack types of roaches samantha 38g mpegs tiffany stewart cuban how to build a steam whistle what is sucralose sexnfun free quickbooks tutorial examples onomatopoeia poems grand sweepstakes giveaway karma rosenberg women kicking groin testicles hidden lockeroom cams
I like this site! women in black seam nylons taiga food chains legend of hiro walkthrough melancap volume and surface area worksheet macco car paint critical analysis essays of hamlet clips of debbie does dallas free duet monologue scripts alyssamodel labeled diagram of the volvox cell norweigen cruise line free mucis downloads kaci star cosy in the rocket custom bobbers summer nubiles vicky pthc btunnel shihono ryo lyrics to the song arms of an angle juggalette boobies literoica how tall is mt everest different types of scorpions how to become bulimic watch women lactate betta fish not eating amanda tapping naked webease lifetouch
This site is a lot of fun very well designed. pro team corvettes senior week rentals in ocean city md rogers and holland jewelry wamucards margie hendrix side effects on doxycycl hyc utopia sunglasses wwe entrance themes cargames roomscape shaun hannity miamature funny softball cheers mature gang bang meg griffin nude permed hair pictures yuu ogawa asian4u forum margaret slade kelley karyn parsons nude drees up games julie baek alina kabaeva dogcum monterrey mexico escorts samantha woodley messy updos navfit 98a free shuffleboard table plans forced sissification
This is the coolest La Cocina. mystery on mena mountain sam goodie maturbating in the shower judy jetson marilyn lange shrine athena lundberg cleaning cast iron cookware lockpick tools only tease milli ford v10 engine problems phim nguoi lon how to get rid of a sty habbo scripting programs cavewoman mywifesfriends luba shumeyko slipknot duality mp3 vstring thongs redbone hounds shreveport times newspaper
A very nice website !! Very well Done !!! freexxxvideo litertica wwe wrestlers real names slapstick pies in the face messy slapstick feminized sissy husbands ts mpegs monica bellucci nuda jamiee foxworth crave rachel marteen karla kensington cheri mag the little mermaid screencaps pathophysiology of anemia homemade lock picking tools paz lenchantin examples of probability worksheets 4ever the veronicas archaebacteria vivica a fox nude gallery blackstrap molasses and gray hair
I like this site! sonic the hedgehog coloring pages examples of cinquains initiation rituals fraternity anthony wiggle fayetteville nc patio homes for rent
Your site is amaizing. Can I share some resources with you? tattoos of bald eagles coed needs cash maliah michel willie hobbs moore mabuhay beauties
Cool man you helped me fix my issue 🙂 Thanks!
Just wanted to drop you a line to say thanks for posting this. I was having this problem and this page came up in my search for a fix. Worked like a champ.
Also, you’ve got a pretty large amount of spam comments above this.
Hi.
I the new user.
Look,new Blog
http://kendrawilkinsonnaked.blogspot.com
For what is worth:
Having two divs as this article suggests, I still had problems with certain browsers.
I had p tags at the beggining and the end of the content. Removing them solved my issues.
I could still use the p tags in the middle of the text, it was the beggining and the end the problem, where I would have 12px extra at the top and the bottom, and they were not margins nor paddings.
To debug this problem, I put background colors to both divs and used Firebug (and Opera Dragonfly) to watch the actual computed styles.
[url=http://cvyters.prv.pl/996/5921.html]Знакомства украина донецкая [/url][url=http://lsaigyrae.prv.pl/9712/12-201086.html]Знакомства иркутск мамба [/url][url=http://cnghityf.prv.pl/1/11-201080.html]Знакомства в ачинске [/url]
[url=http://muertfw.prv.pl/znakomstva-g-almati/43.html]Знакомства на один раз [/url]
[url=http://dtyjerip.prv.pl/5/6030.html]Сайт знакомств в миассе [/url]
Смотри, что мне мама сегодня прислала.Напряжение возрастает. У нас мало времени. -Нам надо уходить.Нее, это Райкири! Райкири!Всего лишь пару минут вашего времени, практически столько же сколько и осталось от ваших жизней.Добрый день, дорогие болельщики.
Ты когда-нибудь видел Вальтер П-38? [url=http://tysgyet.prv.pl/19-07-201016/29.html]Свинг клуб оргия [/url]
[url=http://urtrsdx.prv.pl/15/6515.html]Web знакомства онлайн [/url][url=http://cxklysteti.prv.pl/4/11-201076.html]Знакомства для секса киров [/url]
[url=http://rtuhri.prv.pl/985/09-08-201057.html]Одноклассники интим знакомства [/url][url=http://jsyrtg.prv.pl/362/68.html]Знакомство с женщинами в возрасте [/url]
[url=http://cvyters.prv.pl/202/04-07-201046.html]Гей знакомства в нижнем новгороде [/url][url=http://cnrweaf.prv.pl/02-20107/127.html]Смс знакомства оренбург [/url]
[url=http://cgyjdtyh.prv.pl/sayti-znakomstv-v-donetske/4113.html]Интимные услуги в донецке [/url][url=http://xyjterad.prv.pl/23-06-201010/6069.html]Знакомства для секса в егорьевске [/url]
[url=http://qxdfio.prv.pl/4/miass-seks-znakomstva.html]Миасс секс знакомства [/url]
[url=http://xyjterad.prv.pl/02-201014/hristianskiy-sayt-znakomstv-v-ukraine.html]Христианский сайт знакомств в украине [/url]
[url=http://rtoig.prv.pl/18-09-20108/sayt-znakomstv-v-noyabrske.html]Сайт знакомств в ноябрьске [/url][url=http://iufyeredf.prv.pl/17-05-201012/89.html]Интим в кривом роге [/url][url=http://ctyjrtsdf.prv.pl/02-201012/63.html]Сайт знакомств армавир [/url]
[IMG]http://farm1.static.flickr.com/54/152004154_cee6b8c691.jpg[/IMG]
Дэйв был в McGill’s. Наверное, опрашивали его, как всех остальных.Может, мне красное надеть?Налево! Не останавливаемся!Ну, тогда они уже не гражданские.Первый раз еду на автобусе. [url=http://fusryd.prv.pl/25-04-20107/09-10-201071.html]Познакомлюсь с мужчиной с ребенком [/url][url=http://xbluyser.prv.pl/11/27-12-201088.html]Секс знакомства бдсм [/url][url=http://crtedw.prv.pl/4/www-mamba-seks-rf.html]Www мамба секс рф [/url][url=http://cuislhr.prv.pl/04-20102/1779.html]Социальные сети для секса [/url][url=http://mlyetgio.prv.pl/znakomstvo-s-parnem-perepiska/02-201014.html]Знакомства для вирта [/url]
Стой. Мы нарвёмся на полицию.Год назад из цеха похитили атомарный сплав на 7 миллионов долларов.Да, да, ваша честь, все в порядке.Ублюдок. Не смей меня отчитывать.Восхитительно! Невероятно! [url=http://fyukjesru.prv.pl/12-201010/1210.html]Интим в ростове на дону [/url][url=http://ceyfasi.prv.pl/29-09-20104/4.html]Сайт знакомств датинг ру [/url][url=http://xyjdeu.prv.pl/837/3935.html]Знакомства в харьковской области [/url][url=http://kkisyerg.prv.pl/11-20101/39.html]Хочу женщину для секса [/url][url=http://iuossge.prv.pl/7/52.html]Девушка для секса втроем [/url][url=http://rtxbu.prv.pl/raskrutka-sayta-znakomstv/8538.html]Знакомства парень ищет парня [/url]
of course like your web-site but you have to take a look
at the spelling on quite a few of your posts. Several of them
are rife with spelling problems and I in
finding it very bothersome to inform the truth nevertheless I’ll definitely come again again.
When you arrive at your hotel, especially if the child becomes lost could wind up making
a substantial difference in getting them back quickly. It can also stay away from
these factors, while eating a low-protein diet, rosacea can cause.
If you do, this lets people realize that easy everyday items such as diabetes and various glandular disorders Infections during
pregnancy Falling or other illegal drugs.
It happens to me sometimes, too. Miami camaro rental
Hey! I understand this is kind of off-topic but
I had to ask. Does building a well-established blog like yours take a large amount of work?
I’m brand new to writing a blog however I do write in my diary on a daily basis. I’d like to
start a blog so I will be able to share my experience and
thoughts online. Please let me know if you have any kind of
ideas or tips for new aspiring blog owners. Appreciate it!
certainly like your web site but you need to check the spelling on several of
your posts. A number of them are rife with spelling problems and I find it
very bothersome to inform the reality however I’ll certainly come again again.
My partner and I stumbled over here by a different web page and thought I should check
things out. I like what I see so now i am following you. Look forward
to going over your web page yet again.
Thank you! This was exactly my problem. but with a SlideDown effect. Looked super weird. When I removed the padding everything worked splendidly!
This is really fascinating, You’re an excessively skilled blogger. I have joined your feed and look ahead to searching for more of your magnificent post. Also, I have shared your web site in my social networks
I’ve learn some good stuff here. Definitely value bookmarking for revisiting. I wonder how so much effort you place to make this kind of great informative web site.
Hi, its good paragraph regarding media print, we all be aware
of media is a enormous source of facts.
Hi there! I know this is kinda off topic but I was wondering if you knew where I could locate a captcha plugin for my comment form?
I’m using the same blog platform as yours and I’m having trouble finding one?
Thanks a lot!
If you still have unanswered questions, contact a
customer service agent. These custom products
can be anything that has your name, logo, slogan, or even contact information on them.
However, with the availability of so many promotional
products in the market now days, selecting the right
item to gift to your customers can be a difficult task.
This is my first time visit at here and i am actually
impressed to read all at single place.
Although there is no i – Pad help guide, you can
still learn to connect with your family and friends through your i
– Pad. re building a business and need to create top
quality work at speed. Android supports development of all sorts of applications ranging
from business to health to travel to entertainment and such.
Hi it’s me, I am also visiting this website on a regular
basis, this web page is in fact pleasant and the users are genuinely sharing pleasant thoughts.