New Video ๐๐
https://youtu.be/YTpktW1nXfU
Topic ๐๐
How to Make
Ripple Button effect
In Simple JavaScript..
+ With Free Source Code..
Join :- @codingwala
For More Videos like this...
https://youtu.be/YTpktW1nXfU
Topic ๐๐
How to Make
Ripple Button effect
In Simple JavaScript..
+ With Free Source Code..
Join :- @codingwala
For More Videos like this...
New Video ๐๐ (premier now)๐ด
https://youtu.be/6H8oB_XiEr0
Topic ๐๐
How to detect
Users system Dark/light Mode
+ With Free Source Code..
Join :- @codingwala
For More Videos like this...
https://youtu.be/6H8oB_XiEr0
Topic ๐๐
How to detect
Users system Dark/light Mode
+ With Free Source Code..
Join :- @codingwala
For More Videos like this...
Checkout First Video :-
https://youtu.be/knDzQXBumeA
Source Code For This Videos :-
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Javascript - Adding Score on Button Click</title>
<style type="text/css">
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
section {
height: 100vh;
width: 100%;
display: flex;
align-items: center;
justify-content: center;
background: #000022;
}
.container {
display: flex;
align-items: center;
justify-content: center;
flex-direction: column;
}
#button {
background: none;
border: none;
outline: none;
height: 80px;
width: 80px;
border-radius: 50%;
background: rgba(255, 255, 255, 0.623);
cursor: pointer;
}
#button:active {
background: white;
box-shadow: 0 0 15px 0px white;
}
#demoScore {
font-size: 2em;
color: white;
margin-top: 10px;
font-family: "consolas";
}
</style>
</head>
<body>
<section>
<div class="container">
<button id="button">Click</button>
<p id="demoScore">Score : 0s</p>
</div>
</section>
<script type="text/javascript">
const button = document.getElementById("button");
const demoScore = document.getElementById("demoScore");
let score = 0;
button.addEventListener("click", () => {
score++;
demoScore.innerHTML = "Score : " + score + "s";
});
</script>
</body>
</html>
https://youtu.be/knDzQXBumeA
Source Code For This Videos :-
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Javascript - Adding Score on Button Click</title>
<style type="text/css">
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
section {
height: 100vh;
width: 100%;
display: flex;
align-items: center;
justify-content: center;
background: #000022;
}
.container {
display: flex;
align-items: center;
justify-content: center;
flex-direction: column;
}
#button {
background: none;
border: none;
outline: none;
height: 80px;
width: 80px;
border-radius: 50%;
background: rgba(255, 255, 255, 0.623);
cursor: pointer;
}
#button:active {
background: white;
box-shadow: 0 0 15px 0px white;
}
#demoScore {
font-size: 2em;
color: white;
margin-top: 10px;
font-family: "consolas";
}
</style>
</head>
<body>
<section>
<div class="container">
<button id="button">Click</button>
<p id="demoScore">Score : 0s</p>
</div>
</section>
<script type="text/javascript">
const button = document.getElementById("button");
const demoScore = document.getElementById("demoScore");
let score = 0;
button.addEventListener("click", () => {
score++;
demoScore.innerHTML = "Score : " + score + "s";
});
</script>
</body>
</html>
YouTube
How to Make a Function With Javascript that Will add Score Whenever Button Clicked | Code Is Easy
How to Make a Function With Javascript that Will add Score Whenever Button Clicked | Code Is EasyHello Friends, So Today in this Video I'm Gonna Show You How...
Coding Wala pinned ยซSubscribe To The Channel ๐๐ https://youtube.com/c/codingwalaยป
New Video ๐๐
https://youtu.be/ftW0VLhpzYg
Topic ๐๐
Maths Table Generator of Any Number in Javascript
+ With Free Source Code..
Join :- @codingwala
For More Videos like this...
https://youtu.be/ftW0VLhpzYg
Topic ๐๐
Maths Table Generator of Any Number in Javascript
+ With Free Source Code..
Join :- @codingwala
For More Videos like this...
Source Code Of Ripple Button Effect Video
<!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>Button Ripple Click Effect</title>
<style type="text/css">
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
background: linear-gradient(-57deg, #131320, #161420, #010101);
height: 100vh;
width: 100%;
display: flex;
justify-content: center;
align-items: center;
flex-direction: column;
position: relative;
}
body::before {
content: "";
position: absolute;
top: 0;
left: 0;
bottom: 0;
width: 50%;
background: #ffffff0c;
}
.mainButton {
font-size: 2.2rem;
padding: 20px 40px;
border: 1px solid #fff;
background: #ffffff18;
color: #fff;
font-family: "Quicksand", sans-serif;
margin: 20px 0;
cursor: pointer;
position: relative;
overflow: hidden;
backdrop-filter: blur(8px);
}
.rippleBlock {
height: 80px;
width: 80px;
border-radius: 50%;
background: #ffffffdb;
position: absolute;
transform: translate(-50%, -50%);
opacity: 1;
pointer-events: none;
animation: ripple 0.6s ease-out forwards;
z-index: -1;
}
@keyframes ripple {
to {
height: 580px;
width: 580px;
opacity: 0;
}
}
</style>
</head>
<body>
<button class="mainButton">Do You Wanna Click Me? 1</button>
<button class="mainButton">Do You Wanna Click Me? 2</button>
<button class="mainButton">Do You Wanna Click Me? 3</button>
<!-- Javascript โโ -->
<script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.6.0/jquery.min.js"></script>
<script type="text/javascript">
const mainButton = $(".mainButton");
function mainFunc(e) {
const ripple = document.createElement('span');
ripple.classList.add("rippleBlock")
ripple.style.top = e.clientY - e.target.offsetTop + "px";
ripple.style.left = e.clientX - e.target.offsetLeft + "px";
this.appendChild(ripple)
setTimeout(() => {
ripple.remove();
}, 1200);
}
mainButton.on("click", mainFunc)
</script>
</body>
</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>Button Ripple Click Effect</title>
<style type="text/css">
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
background: linear-gradient(-57deg, #131320, #161420, #010101);
height: 100vh;
width: 100%;
display: flex;
justify-content: center;
align-items: center;
flex-direction: column;
position: relative;
}
body::before {
content: "";
position: absolute;
top: 0;
left: 0;
bottom: 0;
width: 50%;
background: #ffffff0c;
}
.mainButton {
font-size: 2.2rem;
padding: 20px 40px;
border: 1px solid #fff;
background: #ffffff18;
color: #fff;
font-family: "Quicksand", sans-serif;
margin: 20px 0;
cursor: pointer;
position: relative;
overflow: hidden;
backdrop-filter: blur(8px);
}
.rippleBlock {
height: 80px;
width: 80px;
border-radius: 50%;
background: #ffffffdb;
position: absolute;
transform: translate(-50%, -50%);
opacity: 1;
pointer-events: none;
animation: ripple 0.6s ease-out forwards;
z-index: -1;
}
@keyframes ripple {
to {
height: 580px;
width: 580px;
opacity: 0;
}
}
</style>
</head>
<body>
<button class="mainButton">Do You Wanna Click Me? 1</button>
<button class="mainButton">Do You Wanna Click Me? 2</button>
<button class="mainButton">Do You Wanna Click Me? 3</button>
<!-- Javascript โโ -->
<script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.6.0/jquery.min.js"></script>
<script type="text/javascript">
const mainButton = $(".mainButton");
function mainFunc(e) {
const ripple = document.createElement('span');
ripple.classList.add("rippleBlock")
ripple.style.top = e.clientY - e.target.offsetTop + "px";
ripple.style.left = e.clientX - e.target.offsetLeft + "px";
this.appendChild(ripple)
setTimeout(() => {
ripple.remove();
}, 1200);
}
mainButton.on("click", mainFunc)
</script>
</body>
</html>
If you Want To Ask Any Question or Want Source Code of any Video just Ask in our Chat Group
Join From Here:-
@codingwalachat
Join From Here:-
@codingwalachat
New VIdeo ๐๐
Go Checkout Video on
Making Neumorphism Contact Us Form With Dark and Light Mode Toggle...
Go Fast
Video link ๐๐๐
https://youtu.be/dpRU0Blmz64
Go Checkout Video on
Making Neumorphism Contact Us Form With Dark and Light Mode Toggle...
Go Fast
Video link ๐๐๐
https://youtu.be/dpRU0Blmz64
New Video
Two Factor Authentication System in MERN Stack Part 1...
Go On ๐๐
https://youtu.be/2umD5v_EKgU
Two Factor Authentication System in MERN Stack Part 1...
Go On ๐๐
https://youtu.be/2umD5v_EKgU