Jump to content
Search Community

mauro33

Members
  • Posts

    16
  • Joined

  • Last visited

Recent Profile Visitors

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

mauro33's Achievements

  1. Hi all, I want to thank everyone for answering my question ?. As elegantseagulls proposed, I should declare the image in the creation of the object Here the solution if you are interested: const imageTempClass = 'image-temp-class'; const imageTempElement = document.querySelector('.temp-image img'); imageTempElement.className = imageTempClass; element.append(el);
  2. Thank you Rodrigo, Maybe I'll go online with the version I already have no matter if there is a small bug and then I'll check the plugin you share with me for the next update. I have a question regarding the plugin: Can I flip between images that are on different pages? Thanks
  3. Hi elegantseagulls, I think you can edit the code from codepen now. sorry, this is my first time using codepen and I am just finding out how it works. I keep trying to create the image object to call it in the timeline but I can't get it to work yet. https://codepen.io/Mauro33/project/editor/ANYRkr
  4. HI elegantseagulls, thank you, I will try to follow your indications.
  5. Thank you Rodrigo, Yes, as I said I create an object to create the illusion that it moves from one page to another. The object is an <a> tag containing an image. This happens from line 184 to 210 of the code (scripts.js file). As the images in the gallery have a zoom in hover effect of 1.05, I must create the object at the same scale but I do not transform the tag <a> but the image that is inside. I can do this either by css or as in the example that is made in js on line 372 of the demo scripts file. then I configure the behavior and animation of the object from line 214 to 264 of the same file. It is in the animation with gsap. here is where I can change the image scale back to match the size of the final page image code line 232 / timeline.to(`.${tempClassObj}`. Just that here I am calling the <a> tag and not the image so the scale is the same but the image is smaller, does not look very good. Here I don't know how to call the image. "If I'm understanding correctly you should scale the image back down on the click event" Yes, I create the object with a scale and then when I click I modify the scale in the animation i mentioned in the preceding paragraph.
  6. Hi iDad5, Sorry, I forgot to remove that part of the code. That part is not related to what I want to solve. I have already removed that part of the code. My problem is only related to the zoom at the end of the image transition. I have not yet been able to call the image that is inside the temporary object created with js (.temp-image) and change his scale property.
  7. I didn't see your message and I already paid for codepen and uploaded the demo, but it's not a problem if it's about fixing the bug. I am not using any framework, I decided to make the code myself since it is a "simple" page. Here is the link to the demo in codepen : https://codepen.io/Mauro33/project/editor/XNYRVr Thank you very much for your help
  8. Yes, I understand. I'm going to upload a demo but I need to pay the pro version of codepen as I use a transition between pages so I need to create a project. I saw the flip plugin and it is exactly the functionality that I made in js with the help of gsap. I hope I can solve the small error in the code that is already done. I will write you again once I have created the demo. Thanks.
  9. I think my problem is how to apply the scale animation to the image inside the created object. I don't know how to select it. .to(".temp-image img", { This way does not work unfortunately :(
  10. Thank you Rodrigo for your response. I honestly thought that your code would solve the problem but it didn't, maybe it's the code that precedes the animation. The idea of this animation is to create the illusion that the image I have selected remains as the page changes and is displayed larger on an internal page. For this what I did was to create an object when I click and disappear when I get to the internal page. This works fine but as the initial image has a hover effect that scales the image, when I create the object I have to scale it to the same size to avoid a jump between images but when I get to the internal page I have to de-scale it to normal size, this is why I want to change the scale of the image that is inside the object created in the transition. I leave a demo that I uploaded on my server (you can see an example of the problem by clicking on the first picture): https://hallnatura.com/demo/galerie-animal.html Thank you very much for your help
  11. Hello, I made the animation of an element by moving it around the screen and changing its size, but I need to modify also in the same animation the size of an object inside it. I have as parent element a tag <a class="temp-image"> and inside it an image <img>. <a class="temp-image"> <img> </a > The idea is to change the position and size of <a class="temp-image"> and the scale of <img>. I leave below the animation code: in the code as I have it so far, I change the scale to the <a> tag because I don't know how to do it in the image that is inside the tag <a> Thank you in advance for your help const timeline = gsap.timeline(); // temp image movement timeline.to(`.${tempClassObj}`, { duration: .6, top: (boundRect.top - 22), left: (boundRect.left), height: boundRect.height, width: boundRect.width, scale: .95, delay: 0 });
  12. Steroids is a super tool, Thank you!. Could you show examples of not only the code with Gsap but also how you build the blocks in Elementor? I tried an horizontal scroll but it did not work.
  13. I have not yet been able to find out what the error is. I am going to buy a hosting to upload the project since I am using elementor. Thanks
  14. Yes, there's an error when I inspect the page in the navigator dev tool . It is related to the ScrollToPlugin.min.
  15. Same problem. I am using a plugin called Steroides for Elementor that include Barba.js but I can't get it work.
×
×
  • Create New...