Skip to main content

3D Text with Html and Css




Now we will make 3D Slinky Text with Html and Css. First you create a html file which name is 'index.html', then open your file with your editor and type this html code -


<!DOCTYPE html>
<html>
<head>
    <title>Slinky Text</title>
    <style>
        body{
            margin: 0;
            padding: 0;
            font-family: sans-serif;
        }
        .slinky{
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%,-50%);
        }
        .slinky h2{
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            font-size: 8em;
            padding: 0;
            margin: 0;
            color: #fff;
            -webkit-text-stroke: 1px #000;
            animation: animate alternate 4s infinite;
        }
        .slinky h2:nth-child(1){
            animation-delay: .05s;
            color: #03a9f4;
        }
        .slinky h2:nth-child(2){
            animation-delay: .10s;
            color: #e91e63;
        }
        .slinky h2:nth-child(3){
            animation-delay: .15s;
            color: #9c27b0;
        }
        .slinky h2:nth-child(4){
            animation-delay: .20s;
            color: #2196f3;
        }
        .slinky h2:nth-child(5){
            animation-delay: .25s;
            color: #d4e157;
        }
        .slinky h2:nth-child(6){
            animation-delay: .30s;
            color: #f57c00;
        }
        .slinky h2:nth-child(7){
            animation-delay: .35s;
            color: #9e9e9e;
        }
        .slinky h2:nth-child(8){
            animation-delay: .40s;
            color: #651fff;
        }
        .slinky h2:nth-child(9){
            animation-delay: .45s;
            color: #d32f2f;
        }
        .slinky h2:nth-child(10){
            animation-delay: .50s;
        }
       
        @keyframes animate{
            0%,100%{
                top: -150px;
                left: -50px;
            }
            25%{
                left: 250px;
            }
            50%{
                top: 150px;
                left: 50px;
            }
            75%{
                left: -250px;
            }
        }
    </style>


</head>
<body>
    <div class="slinky">
        <h2>Microniyan Designer</h2>
        <h2>Microniyan Designer</h2>
        <h2>Microniyan Designer</h2>
        <h2>Microniyan Designer</h2>
        <h2>Microniyan Designer</h2>
        <h2>Microniyan Designer</h2>
        <h2>Microniyan Designer</h2>
        <h2>Microniyan Designer</h2>
        <h2>Microniyan Designer</h2>
        <h2>Microniyan Designer</h2>
    </div>
</body>
</html>




Tutor: Rakib Alom

Comments

Popular posts from this blog

Dropdown Navbar with Html and Css

Now we make a Dropdown Navbar in Website with Html and Css. First you create a html file which name is 'index.html' , then open your file with your editor and type this html code -

3D Flip Image Card With Html and Css

Last tutorial we made  a 3d button with Html and Css  3D Button with Html and Css (Part-2).   Now we create  3d  flip image card with Html and Css. First you create a html file which name is "index.html" , then open this file with your editor.

VIVO T3 Pro is Available Globally

VIVO T3 Pro নামে VIVO তাদের জনপ্রিয় একটি ফোন সম্প্রতি 27 August 2024 তারিখে লঞ্চ করেছে। নজরকাড়া ডিজাইন এবং নিত্যনতুন দরকারী ফিচার নিয়ে ফোনটি বাজারে বেশ আলোড়ন সৃস্টি করবে বলে ধারনা করা যাচ্ছে। আশা করা যাচ্ছে ফোনটি 03 September 2024 তারিখে বিশ্ববাজারে গ্রাহকদের উদ্দেশ্যে আসতে পারে। তবে বাংলাদেশে কবে আসবে তা এখনো পুরোপুরিভাবে জানা যায়নি। বাংলাদেশের বাজারে অফিশিয়ালি বা আনঅফিশিয়ালি আসা মাত্রই আমাদের ওয়েবসাইটের মাধ্যমে আপনাদেরকে জানিয়ে দেওয়া হবে। চলুন তাহলে একনজরে vivo T3 Pro ফিচারগুলো জেনে নিই… এন্ড্রয়েড Android 14, up to 2 major Android upgrades, Funtouch 14 অপারেটিং সিস্টেম দ্বারা পরিচালিত ফোনটির প্রসেসর হিসেবে থাকবে Qualcomm SM7550-AB Snapdragon 7 Gen 3 (4 nm) এর Octa-core (1×2.63 GHz Cortex-A715 & 3×2.4 GHz Cortex-A715 & 4×1.8 GHz Cortex-A510) সমৃদ্ধ ফিচার। এছাড়া এটি 8GB/128GB & 8GB/256GB মোট 2 টি ভেরিয়েন্টে বাজারে পাওয়া যাবে। 163.7 x 75 x 7.5 or 8.0 mm পরিমাপের মোবাইলটির ওজন হবে 184 g or 190 g (6.49 oz) গ্রাম। 6.77 inches, 110.9 cm 2  ইঞ্চির বড় ডিসপ্লে...