Home
Contact
Latest Posts
How to create unique slug or url in Laravel
How to get user IP address using PHP
Highlighting the matching Keywords in Search Results using PHP
How to Restrict/Block User Access from IP Address in Laravel
How to Copy Text to Clipboard using JavaScript or jQuery
How to Crop Image in PHP and JavaScript before Uploading
How to Create Stopwatch using JavaScript, HTML and CSS
Add more Fields in jQuery and Remove it Dynamically
How To Disable Date only using JavaScript
Eloquent model Accessors and Mutators in Laravel
Category
laravel 9
Laravel Crud
Laravel Basic
Laravel SEO
Laravel 9 Pagination
Laravel Import Export
Javascript
Basic Js Intro
Advanced Javascript
Design Snippet
Boostrap 4
E-Commerce Design
Custom Design
Design Template
Bootstrap 5
Ajax form submition
Send data to Google sheet
Interview Questions
Laravel Interview Questions
PHP interview Questions
Wordpress Interview Questions
jQuery Interview Questions
jQuery
jQuery disable keys
Form Validation
jQuery Beginner's Guide
Wordpress
Wordpress Custom Code
Cheatsheet
PHP
File Handling in PHP
PHP Prepared Statements
SEO
Tools
CSS Box Shadow Generator
CSS Box Shadow Example
Wordpress Custom Post Type Generator Tool
Search
Ctrl + /
3
Brad Diesel
Call me whenever you can...
4 Hours Ago
John Pierce
I got your message bro
4 Hours Ago
Nora Silvester
The subject goes here
4 Hours Ago
See All Messages
15
15 Notifications
4 new messages
3 mins
8 friend requests
12 hours
3 new reports
2 days
See All Notifications
Animated writing text banner design code example 02 live demo
Run
Go back to tutorial
<!doctype html> <html lang="en"> <head> <!-- Required meta tags --> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no"> <!-- Bootstrap CSS --> <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap@4.6.2/dist/css/bootstrap.min.css" > <title>Animated writing text banner design </title> <style> #banner_abs { background: linear-gradient(rgba(0,0,0,.5),rgba(0,0,0,.5)), url(https://picsum.photos/id/1/2400/500); background-size: cover; background-position: center; background-repeat: no-repeat; } .banner_common { width: 100%; overflow: hidden; color: #fff; } .banner_common .row { min-height: 450px; } .big_title { position: relative; padding-bottom: 10px; font-size: 40px; line-height: 45px; } .text-uppercase { letter-spacing: 0.1em; } </style> </head> <body> <section id="banner_abs" class="banner_common"> <div class="container px-0"> <div class="row d-flex align-items-center"> <div class="col-sm-12"> <div class="col-sm-12 text-left "> <div class=" upper text-white "> <!-- <p class="m-0 text-white">We believe on comfort</p> --> <h2 class="text-uppercase text-white big_title"><span class="line">About Us</span></h2> <h3 class="text-uppercase text-white"><span class="typed-text"> </span><span class="cursor typing"> </span></h3> <a href="https://abdultechhub.com/" class="btn btn-primary mt-3">About us</a> </div> </div> </div> </div> </div> </section> <script> const typed_text_span = document.querySelector(".typed-text"); const cursor_span = document.querySelector(".cursor"); const text_array = ["WELCOME TO Abdul Tech Hub","We provide free code source", "Abdul Tech Hub Helps to Build Best web application"]; const typing_delay = 100; const erasing_delay = 20; const new_tex_elay = 100; // Delay between current and next text let text_arrayIndex = 0; let charIndex = 0; function type() { if (charIndex < text_array[text_arrayIndex].length) { if(!cursor_span.classList.contains("typing")) cursor_span.classList.add("typing"); typed_text_span.textContent += text_array[text_arrayIndex].charAt(charIndex); charIndex++; setTimeout(type, typing_delay); } else { cursor_span.classList.remove("typing"); setTimeout(erase, new_tex_elay); } } function erase() { if (charIndex > 0) { if(!cursor_span.classList.contains("typing")) cursor_span.classList.add("typing"); typed_text_span.textContent = text_array[text_arrayIndex].substring(0, charIndex-1); charIndex--; setTimeout(erase, erasing_delay); } else { cursor_span.classList.remove("typing"); text_arrayIndex++; if(text_arrayIndex>=text_array.length) text_arrayIndex=0; setTimeout(type, typing_delay + 1100); } } document.addEventListener("DOMContentLoaded", function() { // On DOM Load initiate the effect if(text_array.length) setTimeout(type, new_tex_elay + 250); }); </script> </body> </html>
OOps! You are currently offline.