Jump to content
Search Community

background color change when translateX

aryaaaarmdn test
Moderator Tag

Recommended Posts

section#about div.about__content div.education ul li,
section#about div.about__content div.experience ul li {
    position: relative;
    padding: .5em;
    margin-bottom: 1em;
    width: 100%;
    background-color: var(--body-color);
}

section#about div.about__content div.education ul li::before,
section#about div.about__content div.education ul li::after,
section#about div.about__content div.experience ul li::before,
section#about div.about__content div.experience ul li::after 
{
    filter: blur(2px);
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(235deg, #43d8c9, #95389e);
    z-index: -1;
}
let eduContainer = document.querySelector("div.education");

gsap.timeline({
    scrollTrigger: {
        trigger: eduContainer,
        toggleActions: "restart reset restart none"
    }
})
    .from("div.education ul li", {
        opacity: 0,
        x: 200,
        stagger: .5,
        duration: 1,
        ease: "back",
    })

Hii..

Sorry guys, i need ur help

 

i make this list element style like border element  with linier gradient..

i want to translate this list element. but, why background color of list element change to linier gradient ? i want to translate this element with background color body color

 

thankuu so much

Link to comment
Share on other sites

Hey aryaaaarmdn and welcome to the GreenSock forums.

 

18 hours ago, aryaaaarmdn said:

why background color of list element change to linier gradient ?

It's not clear exactly what you're wanting help with. Can you please create a minimal demo of the issue using something like CodePen and share it with us? Please strip out everything that is not relevant to the issue.

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...