Before you ask please READ THIS

Fast translation on mobile

in Photon Posts: 24
Hello,

I noticed on mobile sometimes images are translating very fast on the slider with ken burns, because it's doing a translation from left to right (this is due to the ratio of the phone in portrait).

You can test it here:
http://alexiakaren.ninjacomputing.com/

It would be bette to have the image almost centered with just a little translation.

Is it possible for you do to something or at least to tell me what I can change in the script?

Cheers

Comments

  • AirAir
    Posts: 10,970
    Hello:-)

    Yes, it can happen in portrait mode, but it is subjective what is "too fast" so it will be not easy to tweak just like that.

    I will think about how "too fast" can be measured before translation starts and I will make it while doing other correction that you have been asking about.

    I will reply here when I will have something.

    Thanks for cool suggestions!

    With kind regards.
  • AirAir
    Posts: 10,970
    Hello :-)

    Please try such modification:
    Go to photon-a13\js\a13-slider.js line ~1677 and change this

    top = parseInt(this_img.css('top'), 10)
    left = parseInt(this_img.css('left'), 10)
    to

    top = parseInt(this_img.css('top'), 10)*0.2,
    left = parseInt(this_img.css('left'), 10)*0.2,
    Please test it and tell me is it working fine for you.

    With kind regards.
  • Posts: 24
    Hello :)

    Great, thanks!
Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

In this Discussion