Jump to content
Search Community

katherine

Members
  • Posts

    1
  • Joined

  • Last visited

Everything posted by katherine

  1. If I were you I would create variables for each edge animate element you want use in your code. It is much easier to read the code and works for me. For your case I would create two variables for each of your elements- then declare those variables in the draggable code (notice you don't need commas or paranthesis around them now either- and you can name them whatever you want!). much cleaner! var letterA = sym.$('AA2'); var rectangle= sym.$('Rectangle'); Draggable.create(letterA, {bounds: rectangle) });
×
×
  • Create New...