Jump to content
Search Community

Lichay

Members
  • Posts

    159
  • Joined

  • Last visited

Everything posted by Lichay

  1. you did npm install gsap only?
  2. i open new project to try it so it can't be with my code
  3. code pen it regular html css and javascript i don't use them i use framework and it don't work if i share with codepen it maybe work but so .. ? it bad . everyone use framworks like me . and with framwork this plug don't work as 'before' and 'after' like i said above
  4. so in code pen it work it no metter to me This library doesn't support Angular 9 this is my case
  5. do you want my git link?
  6. why not I have a class with name cc when i log in it say "undefined" for no reason
  7. when I try to use gsap with pursue element it not recognize that my ts import { Component, OnInit } from '@angular/core'; import { gsap } from "gsap"; import { CSSRulePlugin } from "gsap/CSSRulePlugin"; import { ScrollTrigger } from "gsap/ScrollTrigger"; @Component({ selector: 'app-root', templateUrl: './app.component.html', styleUrls: ['./app.component.css'] }) export class AppComponent implements OnInit { title = 'gsapProject'; ngOnInit() { gsap.registerPlugin(CSSRulePlugin, ScrollTrigger); gsap.from('div h1', { scrollTrigger: 'div h1', y: 200, duration: 5 }); const rule = CSSRulePlugin.getRule('.cc::before'); gsap.to(rule, 3, { cssRule: { color: "#0000FF", x: 50 }, x: 300 }); } } and this my HTML <div> <h1 class="cc">new project</h1> </div> Just try it with a new project for be clear and don't work . This my message from the page gsap-core.js:87 GSAP target undefined not found. https://greensock.com feel like no way to do it.
×
×
  • Create New...