Jump to content
Search Community

Tissi_2

Members
  • Posts

    9
  • Joined

  • Last visited

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

Tissi_2's Achievements

1

Reputation

  1. Wow, that was easy! Thank you so much for the very quick answer! The result is exactly what I wanted to have. I really appreciate it!
  2. Hello everybody! I would like to create a small riddle with kind of a dial. I have already created 8 buttons to control some tweens but I encountered a problem with the rotation of the outer number. Every time the outer scale is rotated out of its original position the rotation of the number itself takes place at the "12 o clock" position. When rotating the outer scale again the number jumps back to the new position. I would like to rotate the number by 180 degrees at its current position. Can anyone help me with this, please? Thanks in advance Tissi
  3. Hi Craig! Thank you for your answer! I think gsap isn´t the right way to go for me. I tried a lot of things with jquery, css checkbox hack, css hue rotate filter, divs instead of tables, changing the queue, changing the structure of the code etc. Any of these changes did not speed up the ios browser speed, neither with firefox nor with safari. It seems that the code just needs a powerful CPU or GPU to handle all commands simultaneously, or the ios / mobile browsers are not optimized to do this at once. I spent a looooot of time to come to this conclusion.... I think I am stuck here with my little experience. Nevertheless I implemented a nice css filter that you have mentioned. Thank you anyway for giving me a hint to improve my knowledge. Best regards Tissi_2
  4. Hi everybody! I am completely new to GSAP. First of all I´d like to notice that I really have a hard time to get into this stuff. The documentation isn't that good for a beginner. I neither don't know what kind of plugins or other 3rd party java stuff is needed to use the gsap plugins, nor I really do not get it how to call up funtion to do something with gsap. So, how did I get here? I already programmed a little website for a geocache listing, but on mobile devices the site is kind of slow. Somebody told me to "do the trick" with gsap because it is much faster than jquery. My goal is to change the colors of pictures, borders and text when a checkbox is clicked. Here you can see what I mean: My example website I removed the images (actual code not in the example page) and now want to draw one corner image in 4 canvas. Here is what I got so far. <script> window.onload = function() { var canvas = document.getElementsByClassName("edge_can"); // I gave the canvas a class named "edge_can" / not on the example page! var ctx = canvas.getContext("2d"); var img = new Image(); img.src = "https://www.tissi-solutions.de/caches/matrix/edge.jpg"; ctx.drawImage(img,0,0,100,100); }; </script> Do the canvas need all one "id" or can I use a class to draw 1 picture in multiple canvas? How do I do that? Do I really need canvas for this or can I manipulate the colors by just calling a gsap funtion? Which plugins are needed to change all mentioned colors? Do I need PixiJS for the Pixi plugin? Am I on a right approach or do you think that the speed won´t improve by changing to gsap? Any suggestions are welcomed! Thanks in advance! Tissi
×
×
  • Create New...