Skip to main content

Clip Image On Text Using HTML & CSS | CSS Overlay Text On Image | background-clip text effect-CSS

   In this video, we will create an awesome text effect CSS only. This video on how to clip image on text using -webkit-background-clip. For a preview click on  Demo If you want to get the complete source code in a zip file then click the "Fork me on GitHub" button below that will redirect you to my GitHub account where you found all my source code files. Copy Code(select code part and copy using "CTRL + C" or using R Click to mouse)🡇 HTML <! DOCTYPE   html > < html   lang = "en" > < head >     < meta   charset = "UTF-8" >     < meta   http-equiv = "X-UA-Compatible"   content = "IE=edge" >     < meta   name = "viewport"   content = "width=device-width, initial-scale=1.0" >     < title >How to clip image on text</ title >      <!-- style.css -->     < link   rel = "stylesheet"   href = "style.css" > </ head > < body >

Text To Speech Converter Using JS | Text To Speech In JavaScript

 


In this video, we will create a text to speech converter using javascript.
For a preview click on Demo

If you want to get the complete source code in a zip file then click the "Fork me on GitHub" button below that will redirect you to my GitHub account where you found all my source code files.

Copy Code(select code part and copy using "CTRL + C" or using R Click to mouse)🡇

HTML

<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Text To Speach Converter</title>
    <!-- style.css -->
    <link rel="stylesheet" href="style.css">
</head>

<body>

    <input type="text" placeholder="Enter text to speech...">
    <button>Speech</button>
    

    <!-- JavaScript -->
    <script src="main.js"></script>
</body>

</html>

CSS

*{
    margin0;
    padding0;
}
body{
    min-height100vh;
    background-color#001727;
    displayflex;
    flex-directioncolumn;
    justify-contentcenter;
    align-itemscenter;
}
input{
    font-size3em;
    color#f1f1f1;
    backgroundtransparent;
    bordernone;
    border-bottom3px solid #f1f1f1;
    padding10px;
    outlinenone;
}
button{
    color#001727;
    background-color#f1f1f1;
    outlinenone;
    font-size30px;
    margin-top30px;
    padding15px 30px;
    border-radius10px;
    border1px solid #f1f1f1;
    cursorpointer;
    transition0.3s;
}
button:active{
    background-colortransparent;
    color#f1f1f1;
}

JavaScript

let btn = document.querySelector("button");
let userText = document.querySelector("input");
let msg = new SpeechSynthesisUtterance();

// when click on button 
btn.addEventListener("click",()=>{
    // when input value is blank
    if(userText.value == ""){
        msg.text = "Please type text that you wanna speech";
    } else{
        msg.text = userText.value;
    }
    window.speechSynthesis.speak(msg);
});

Fork me on GitHub

Click on download zip to download complete source in zip file.

Subscribe to me on YouTube

Like & Comment on my video on YouTube & press the bell icon to get notification first.

Follow me on Instagram

Comment down any query if you have.

Comments

Popular posts from this blog

Play GIF On Hover | Animate GIF on hover | How To Animate GIF On Hover In CSS

In this video, we will create a hover animated GIF using HTML & CSS. When we hover on the image box the image change into a GIF image. You can easily create this with only CSS. For a preview click on  Demo If you want to get the complete source code in a zip file then click the "Fork me on GitHub" button below that will redirect you to my GitHub account where you found all my source code files. Copy Code(select code part and copy using "CTRL + C" or using R Click to mouse)🡇 HTML <! DOCTYPE  html > < html  lang = " en " > < head >      < meta  charset = " UTF-8 " >      < meta  http-equiv = " X-UA-Compatible "   content = " IE=edge " >      < meta  name = " viewport "   content = " width=device-width, initial-scale=1.0 " >      < title > Play GIF on hover </ title >      <!-- style -->      < link  rel = " stylesheet "   href = " st

Bootstrap 5 Sidebar Navigation | Bootstrap Side Navbar With Responsive | Speed Code UI Design

In this video, we will create a responsive sidebar using Bootstrap 5 with an easy trick, most of the people stuck in this to how to create this type of sidebar using Bootstrap. For a preview click on   Demo For more about bootstrap 5 click here If you want to get the complete source code in a zip file then click the "Fork me on GitHub" button below that will redirect you to my GitHub account where you found all my source code files. Copy Code(select code part and copy using "CTRL + C" or using R Click to mouse)🡇 HTML <! DOCTYPE  html > < html  lang = " en " > < head >      < meta  charset = " UTF-8 " >      < meta  name = " viewport "   content = " width=device-width, initial-scale=1.0 " >      < title > Bootstrap 5 Side Bar Navigation </ title >      <!-- bootstrap 5 css -->      < link  rel = " stylesheet "   href = " https://stackpath.bootstrapcdn.com/bootst

Login System Using NodeJS & MySQL Database | 2020 latest video

  ➣ In this video, we will create a login system using Node.JS & MySQL database ➣  Download Source Code