| Server IP : 172.67.201.108 / Your IP : 216.73.216.68 Web Server : Apache/2.4.68 (Amazon Linux) OpenSSL/3.5.5 System : Linux ip-172-31-69-123.ec2.internal 6.1.176-223.369.amzn2023.x86_64 #1 SMP PREEMPT_DYNAMIC Fri Jul 24 13:34:27 UTC 2026 x86_64 User : ec2-user ( 1000) PHP Version : 8.4.23 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : ON Directory : /home/home2/cgny/public_html/familyfun/Package-HTML/Canvas 7 Files/ |
Upload File : |
<!DOCTYPE html>
<html dir="ltr" lang="en-US">
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8">
<meta http-equiv="x-ua-compatible" content="IE=edge">
<meta name="author" content="SemiColonWeb">
<meta name="description" content="Get Canvas to build powerful websites easily with the Highly Customizable & Best Selling Bootstrap Template, today.">
<!-- Font Imports -->
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Noto+Sans:wght@400;700&family=Noto+Serif:ital,wght@1,700&display=swap" rel="stylesheet">
<!-- Core Style -->
<link rel="stylesheet" href="style.css">
<!-- Font Icons -->
<link rel="stylesheet" href="css/font-icons.css">
<!-- Plugins/Components CSS -->
<link rel="stylesheet" href="css/swiper.css">
<!-- Custom CSS -->
<link rel="stylesheet" href="css/custom.css">
<meta name="viewport" content="width=device-width, initial-scale=1">
<!-- Document Title
============================================= -->
<title>Custom Cursor | Canvas</title>
<style>
@media (min-width: 992px) {
body.block-misc-canvas-cursor,
html.block-misc-canvas-cursor,
.block-misc-canvas-cursor a { cursor: none; }
.block-misc-canvas-cursor {
--cursor-bg: #111;
--cursor-scale: 0.8;
--cursor-size: 20px;
}
/* Cursor Styling */
.block-misc-canvas-cursor .canvas-cursor {
position: absolute;
width: 8px;
height: 8px;
border-radius: 100%;
z-index: 1;
transition: transform .5s ease, opacity .2s ease;
user-select: none;
pointer-events: none;
transform: scale(var(--cursor-scale));
background-color: var(--cursor-bg);
}
.block-misc-canvas-cursor .canvas-cursor::before {
content: "";
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
display: block;
background-image: url('images/blocks/preview/cursor.svg');
background-position: center center;
background-size: cover;
background-repeat: no-repeat;
border-radius: 100%;
opacity: 0;
}
.block-misc-canvas-cursor .canvas-cursor.cursor-active {
opacity: 1;
transform: scale(12);
}
.block-misc-canvas-cursor .canvas-cursor.cursor-active::before {
opacity: 1;
}
.block-misc-canvas-cursor .canvas-cursor-follower {
position: absolute;
width: var(--cursor-size);
height: var(--cursor-size);
background-color: var(--cursor-bg);
opacity: .2;
border-radius: 100%;
z-index: 1;
transition: transform .6s ease, opacity .4s ease;
user-select: none;
pointer-events: none;
transform: translate(14px, 14px);
}
.block-misc-canvas-cursor .canvas-cursor-follower.cursor-active {
opacity: 0.3;
transform: scale(0);
}
.block-misc-canvas-cursor .dark .canvas-cursor,
.block-misc-canvas-cursor .dark .canvas-cursor-follower { --cursor-bg: #FFF; }
}
</style>
</head>
<body class="stretched block-misc-canvas-cursor">
<div class="canvas-cursor"></div>
<div class="canvas-cursor-follower"></div>
<!-- Document Wrapper
============================================= -->
<div id="wrapper">
<!-- Content
============================================= -->
<section id="content">
<div class="content-wrap">
<div class="container mw-sm">
<h3 class="text-center">Custom Cursor</h3>
<a href="#" class="canvas-cursor-hover">
<div class="card bg-dark text-white overflow-hidden h-translate-y h-shadow all-ts">
<img src="demos/music/images/slider/1.jpg" alt="...">
<div class="card-img-overlay dark d-flex flex-column justify-content-end p-5">
<h3 class="card-title">Card title</h3>
<p class="card-text text-white-50">This is a wider card with supporting text below as a natural lead-in to additional content. This content is a little bit longer.</p>
</div>
</div>
</a>
</div>
</div>
</section><!-- #content end -->
</div><!-- #wrapper end -->
<!-- Go To Top
============================================= -->
<div id="gotoTop" class="uil uil-angle-up"></div>
<!-- JavaScripts
============================================= -->
<script src="js/jquery.js"></script>
<script src="js/functions.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/gsap/3.5.1/gsap.min.js"></script>
<script>
var cursor = jQuery(".canvas-cursor"),
follower = jQuery(".canvas-cursor-follower"),
posX = 0,
posY = 0,
mouseX = 0,
mouseY = 0;
TweenMax.to({}, 0.016, {
repeat: -1,
onRepeat: function(){
posX += (mouseX - posX) / 9;
posY += (mouseY - posY) / 9;
TweenMax.set(follower, {
css: {
left: posX - 20,
top: posY - 20
}
});
TweenMax.set(cursor, {
css: {
left: mouseX,
top: mouseY
}
});
}
});
jQuery(document).on("mousemove", function(e) {
mouseX = e.pageX;
mouseY = e.pageY;
});
jQuery(".canvas-cursor-hover").on("mouseenter", function() {
cursor.addClass('cursor-active');
follower.addClass('cursor-active');
});
jQuery(".canvas-cursor-hover").on("mouseleave", function() {
cursor.removeClass('cursor-active');
follower.removeClass('cursor-active');
});
</script>
</body>
</html>