Jump to content
Search Community

Using symbols or sprites with draggable?

Telefisch test
Moderator Tag

Warning: Please note

This thread was started before GSAP 3 was released. Some information, especially the syntax, may be out of date for GSAP 3. Please see the GSAP 3 migration guide and release notes for more information about how to update the code to GSAP 3's syntax. 

Recommended Posts

Hi guys,

I'm new to svg, so please be Patient with me :)

 

I'm just Looking for a solution to build a simple Editor for creating some schemes with Symbols.

My Suggestion is to drag a Symbol from a database on a view and place it there. Give it some porperties an save this drawing later in the database.

For this, my first experiences with svg have bee Building Symbols, so I can define all Symbols in the site and <use> them in the drawing.

So fa, so good.

Now I'd like to move some Symbols by mouse and therefor, I tried draggable.

Now if I make the used Symbols draggable, all Symbols are moved, not only the <use>d Symbols.

 

My General Question is, if this is normal and if it perhaps works with sprites.

See the Pen LoEReP by Telefisch (@Telefisch) on CodePen

Link to comment
Share on other sites

Yes, this works. 

Thank you. 

 

But now I there is no way for using symbols that are not draggable?

can you perhaps give me a tip for a complete SVG course?

The only courses I found are just creating the Basic shapes and some little steps around. 

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...