Jump to content
Search Community

hendrik

Members
  • Posts

    2
  • Joined

  • Last visited

hendrik's Achievements

1

Reputation

  1. Thanks for the warm welcome Jonathan. You have given me some ideas for restructuring my code a little. I am creating a little 'world' with randomly moving objects. If I would initialize each element on the page on exactly the same top/left location and then disperse them randomly using matrix3d() I would then be able to move all of them to the same spot quite easily using the same trick. Currently each element has a different top/left position to start off with, so moving the whole collection in one go with x/y values in the animation parameter sends them all flying to a different spot. Thanks again, Hendrik
  2. I want to move a collection of DOM elements to a single spot. I have attempted to do so by animating the top and left property. When inspecting the element I can see that the inline styles are being set correctly to the elements, but they are not taking effect. I am guessing this is to do with the fact that a matrix3d style is already applied, but I am having trouble identifying how I can fix it. Animating the x and y properties instead of top and left is not a solution because this only moves elements relative to their initial position. Any tips? My thanks in advance! EDIT: I made a stupid error and was trying to move a child element when I should have moved the parent. Very sorry for wasting everyone's time.
×
×
  • Create New...