By the way, using absolute positioning works a bit better, if you want to
try what you need to do is add "position: relative" to your id=container,
then you init two fx classes (one to do x-axis, another for y-axis)
var _myFx1 = new Fx.Tween(document.id('wrapper'));
var _myFx2 = new Fx.Tween(document.id('wrapper'));
// 0,0 is the top left position of the page, moving to the right is thus
negative left (move the "wrapper" inside the "container")
// to feel how the scrolling goes assign this function to some button
scrollTest = function() {
_myFx1.start('left', - 2000);
_myFx2.start('top', - 2000);
}
If this works out better for you, you will need to find the offset of
elements you want to scroll to, so build a little class the does this,
using:
(to find the destination element offset inside the wrapper)
document.id('content4').offsetHeight
document.id('content4').offsetWidth
put those values as negatives as parameters to the two FX classes we created
earlier.
On Fri, Dec 18, 2009 at 2:12 AM, Roman Land <[email protected]> wrote:
> Tried it with your site but I am getting the same results.
>
> Did you try the smoothscroll plugin?
> http://mootools.net/docs/more/Fx/Fx.SmoothScroll
>
> HTH
>
>
> On Fri, Dec 18, 2009 at 1:41 AM, Ami <[email protected]> wrote:
>
>> Nope, I haven't tried that. Bear with me for a second here, because
>> I'm still relatively new to this, what code would I change to make
>> that work?
>>
>> On Dec 17, 5:31 pm, Roman Land <[email protected]> wrote:
>> > if I recall correctly I had better performance with absolute positioning
>> > (with left: (n)px top: (n)px) instead of using offset with FX, I cant
>> > explain it but it helped. (maybe the browser renders absolute position
>> > movement better then offset..
>> >
>> > Let me know if you've tried it!
>> >
>> >
>> >
>> > On Fri, Dec 18, 2009 at 1:22 AM, Ami <[email protected]> wrote:
>> > > Nope...this problem was happening before any of those scripts were
>> > > added, unfortunately.
>> >
>> > > I ended up having to give up on it for a while for times sake and
>> > > finish out the site despite the weird issue. >.< Sorry.
>> >
>> > > Thanks so much for trying to help, you're the first and only one so
>> > > far (across 3 different forums). Any other possible tricks up your
>> > > sleeve?
>> >
>> > > On Dec 17, 5:17 pm, Roman Land <[email protected]> wrote:
>> > > > You could try (for testing at least) removing tracking scripts you
>> > > included
>> > > > (google and some other ones), I see in their code that they are
>> watching
>> > > for
>> > > > events
>> >
>> > > > On Fri, Dec 18, 2009 at 12:57 AM, Ami <[email protected]>
>> wrote:
>> > > > > No luck. :( Tried lower (all the way down to 1 fps) and higher
>> (all
>> > > > > the way to 1500fps) and it changes frequency, but it's still very
>> > > > > obvious.
>> >
>> > > > > ...Any other ideas?
>> >
>> > > > > This is so strange!!
>> >
>> > > > > On Dec 17, 4:22 pm, Roman Land <[email protected]> wrote:
>> > > > > > Hi,
>> >
>> > > > > > Your code looks good (except maybe that you are creating new
>> event to
>> > > > > stop
>> > > > > > bubling... but that does effect the scrolling issue).
>> >
>> > > > > > I would try playing with the FPS valuehttp://
>> > > > >www.docs.mootools.net/docs/core/Fx/Fx
>> > > > > > My guess that a lower value (default 50) will resolve this
>> issue, but
>> > > > > maybe
>> > > > > > a higher one :)
>> >
>> > > > > > Please update if this helped..
>> >
>> > > > > > On Fri, Dec 18, 2009 at 12:06 AM, Ami <[email protected]>
>> > > wrote:
>> > > > > > > Please help! I'm at my wits end trying to figure this out.
>> >
>> > > > > > > I used the Fx.Scroll effect on a website I recently developed,
>> and
>> > > it
>> > > > > > > works beautifully in Firefox, but on every version of IE the
>> effect
>> > > is
>> > > > > > > shaky and a little nauseating to watch. Can anyone give me
>> some
>> > > sort
>> > > > > > > of clue as to why this happens and what I can do to fix it?
>> >
>> > > > > > > I've tried removing all the images (its a very image heavy
>> site),
>> > > as
>> > > > > > > well as removing the other scripts I have running on the same
>> page,
>> > > > > > > all to no avail.
>> >
>> > > > > > > The site URL ishttp://www.3wayevents.com. It's just one page,
>> so
>> > > > > > > viewing the source will reveal any and all of my code besides
>> the
>> > > > > > > unaltered javascript libraries.
>> >
>> > > > > > > Thanks in advance!
>> >
>> > > > > > --
>> > > > > > ---
>> > > > > > "Make everything as simple as possible, but not simpler."
>> >
>> > > > > > - Albert Einstein
>> >
>> > > > --
>> > > > ---
>> > > > "Make everything as simple as possible, but not simpler."
>> >
>> > > > - Albert Einstein
>> >
>> > --
>> > ---
>> > "Make everything as simple as possible, but not simpler."
>> >
>> > - Albert Einstein
>>
>
>
>
> --
> ---
> "Make everything as simple as possible, but not simpler."
>
> - Albert Einstein
>
>
--
---
"Make everything as simple as possible, but not simpler."
- Albert Einstein