Join Our Telegram Channel Contact Us Join Now!
Ad

Generate Link


Circle Text Animation using CSS & JS | CSS Text Effects | Animated Circle Text CSS

Circle Text Animation using CSS & JS | CSS Text Effects | Animated Circle Text CSS

Circle Text Animation using CSS & JS | CSS Text Effects | Animated Circle Text CSS

Circle Text Animation using CSS & JS | CSS Text Effects | Animated Circle Text CSS

 

# To create Circle Text Animation using CSS & JS | CSS Text Effects | Animated Circle Text CSS Select Menu using JavaScript, you can use a combination of HTML, CSS, and JavaScript to create Circle Text Animation using CSS & JS | CSS Text Effects | Animated Circle Text CSS Select Menu and apply a tilt effect to it. Here's an example:


1. First, create a container element in HTML for the Animated Circle Text:

<div class="circle">
<div class="logo"></div>
    <div class="text">
        <p>
            Some text - Animated circle text -
        </p>
    </div>
</div>
            

2. Next, add some CSS to Animated Circle Text and position the container in the center:

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: #fff;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.circle {
    position: relative;
    width: 200px;
    height: 200px;
    border-radius: 100vmax;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo {
    position: absolute;
    width: 140px;
    height: 140px;
    background: url("https://img.freepik.com/premium-vector/nx-logo-vector_724449-206.jpg");
    background-size: 19rem;
    border-radius: 100vmax;
    background-position: center;
}

.text {
    position: absolute;
    width: 100%;
    height: 100%;
    font-family: consolas;
    color: #000;
    font-size: 17px;
    animation: textRotation 8s linear infinite;
}

@keyframes textRotation {
    to {
        transform: rotate(360deg);
    }
}

.text span {
    position: absolute;
    left: 50%;
    font-size: 1.2em;
    transform-origin: 0 100px;
}
            

3. Use JavaScript to Animated Circle Text element inside the container:

const text = document.querySelector(".text");
text.innerHTML = text.innerText
    .split("")
    .map(
        (char, i) => `<span style="transform:rotate(${i * 10.3}deg)">${char}</span>`
    )
    .join("");
            

* Hello buddy, I hope you are doing great and creating awesome projects. Today I have brought a useful project for you. In this project, you will learn to create Animated Circle Text` using HTML CSS, and JavaScript. Yeah, HTML also provides us a select menu with the dropdown feature, but we will you will learn to make it more beautiful and fascinating.

Rate this article

Loading...

Post a Comment


Continue


© code web 4u. All rights reserved.

Cookies Consent

This website uses cookies to ensure you get the best experience on our website.

Cookies Policy

We employ the use of cookies. By accessing Lantro UI, you agreed to use cookies in agreement with the Lantro UI's Privacy Policy.

Most interactive websites use cookies to let us retrieve the user’s details for each visit. Cookies are used by our website to enable the functionality of certain areas to make it easier for people visiting our website. Some of our affiliate/advertising partners may also use cookies.