ttmind

Main Navigation

ttmind
  • jim-jams
  • Tech
  • Positive
Login

Login

Facebook Google

OR

Remember me Forgot password?

Don't have account? Signup here.

Sort by Categorys

.Net

PHP

Java

JavaScript

Database

Server

Client Side

Tools

Artificial Intelligence

Cloud

Hybrid Development

Event

Smart City

Education

Security

Scrum

Digital Marketing

APP Development

Business

Internet

Simulation

Art

Network

Microservices

Architecture

Technology

Leadership

    Top Articles

  • How Does Social Media Bring People Together?
    TTMind Author
  • How to read appSettings JSON from Class Library in ASP.NET Core
    Anil Shrestha
  • Printing Support In Asp.Net Core
    TTMind Author
  • HOW TO EXTRACT TEXT FROM IMAGE USING JAVASCRIPT (OCR with Tesseract.js)?
    Prakash Pokhrel
  • Images Upload REST API using ASP.NET Core
    Prakash Pokhrel
  • Related Topic

  • What is ReadOnly and Disabled attribute in HTML?
  • How to Integrate reCAPTCHA in your website?
  • Simple Scroll Effect using JavaScript+JQuery.
  • Typewriter Effect using CSS
  • Invalid Scopes: pages_manage_instant_articles. This message is only shown to developers. Users of your app will ignore these permissions if present
  • Tech
  • About Us
  • Contact Us
  • TechHelp
  • PositiveHelp
  • Jim-Jams Help
  • Terms & Conditions

© Copyright ttmind.com

Main Content

CSS Animation with cubic-bezier()

Client Side CSS about 6 years ago || 6/3/2019 || 3.8 K View

  • Hide

CSS Animation with cubic-bezier()

With the help of cubic-bezier we can control the timing of the element and transition. It is commonly used to shape the css animation,cubic-bezier() increase the speed of transition. bezier curve is defined by 4 values.

Syntax:

cubic -bezier(x1,y1,x2,y2)

where as,

x1= Starting point of x.

y1= Stating point of y.

x2= Ending point of x

y2= Ending point of y

CODE:

<!DOCTYPE html>
<html>
<head>
    <title>Cubic-Bezier</title>
    <style>
        .cubic-bezier {
        margin: 100px auto;
        width: 200px;
        transition-timing-function: cubic-bezier(0,0,1,50);
        padding: 30px;
        animation: changes 4s infinite;
        }
        @keyframes changes {
        0% {
        background:red;
        border-radius:0%;
        }
        50% {
        background: Blue;
        border-radius: 50%;
        }
        100% {
        background: red;
        border-radius:0%;
        }
       }
    </style>
</head>
<body>
    <div class="cubic-bezier">
        <h5>Cubic-Bezier</h5>
    </div>
</body>
</html>

OUTPUT:

  • 1
  • 0
  • 0
    • Facebook
    • Twitter
    • Google +
    • LinkedIn

About author

Asbin Joshi

Asbin Joshi

Reset Your Password
Enter your email address that you used to register. We'll send you an email with your username and a link to reset your password.

Quick Survey