Cell Focusing
How do I make an cell focusing?
Something for a current project. What is a cell focusing? How do you make a cell focusing? This script and codes were developed by Jon Ambas on 19 October 2022, Wednesday.
Cell Focusing - Script Codes HTML Codes
<!DOCTYPE html>
<html >
<head> <meta charset="UTF-8"> <title>Cell Focusing</title> <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/normalize/5.0.0/normalize.min.css"> <link rel="stylesheet" href="css/style.css">
</head>
<body> <div class="cell-animation-wrapper"> <div class="cell"><div class="cell-inner"></div></div> <div class="cell-target-circle"> <div class="cell-target-crosshair"></div> <svg class="svg-circle" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" viewBox="0 0 53.5 53.5" enable-background="new 0 0 53.5 53.5" xml:space="preserve"> <path fill="transparent" stroke-width="1" vector-effect="non-scaling-stroke" stroke-miterlimit="10" d="M26.75,1C12.529,1,1,12.529,1,26.75 C1,40.972,12.529,52.5,26.75,52.5c14.222,0,25.75-11.528,25.75-25.75C52.5,12.529,40.972,1,26.75,1"></path> </svg> </div> <div class="cell-target-circle outer"> <svg class="svg-circle" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" viewBox="0 0 53.5 53.5" enable-background="new 0 0 53.5 53.5" xml:space="preserve"> <path fill="transparent" stroke-width="1" vector-effect="non-scaling-stroke" stroke-miterlimit="10" d="M26.75,1C12.529,1,1,12.529,1,26.75 C1,40.972,12.529,52.5,26.75,52.5c14.222,0,25.75-11.528,25.75-25.75C52.5,12.529,40.972,1,26.75,1"></path> </svg> </div>
</div> <script src='http://cdnjs.cloudflare.com/ajax/libs/jquery/2.1.3/jquery.min.js'></script> <script src="js/index.js"></script>
</body>
</html>
Cell Focusing - Script Codes CSS Codes
.cell { position: absolute; top: 45%; left: 45%; width: 120px; height: 110px; background: url(http://jonambas.com/public/test-cell-1.png) no-repeat; background-size: cover; filter: progid:DXImageTransform.Microsoft.Alpha(Opacity=50); opacity: 0.5; -webkit-filter: blur(4px); filter: blur(4px); -moz-transition: 0.3s; -o-transition: 0.3s; -webkit-transition: 0.3s; transition: 0.3s; -webkit-animation: cell-move 10s cubic-bezier(0.77, 0, 0.175, 1) infinite; animation: cell-move 10s cubic-bezier(0.77, 0, 0.175, 1) infinite;
}
.cssfilters .cell { -webkit-animation: cell-move 10s cubic-bezier(0.77, 0, 0.175, 1) infinite; animation: cell-move 10s cubic-bezier(0.77, 0, 0.175, 1) infinite;
}
.cell-animation-wrapper { position: absolute; height: 100%; width: 100%;
}
.cell-inner { position: absolute; top: 25%; left: 25%; width: 50%; height: 50%; background: url(http://jonambas.com/public/test-cell-2.png) no-repeat; background-size: cover; filter: progid:DXImageTransform.Microsoft.Alpha(Opacity=40); opacity: 0.4; -webkit-filter: blur(1px); filter: blur(1px); -webkit-animation: cell-inner-move 7s cubic-bezier(0.455, 0.03, 0.515, 0.955) infinite; animation: cell-inner-move 7s cubic-bezier(0.455, 0.03, 0.515, 0.955) infinite;
}
.cell-target-circle { position: absolute; top: 45%; left: 45%; width: 220px; height: 220px; border-radius: 50%; box-shadow: 0px 0px 1px 0px rgba(255, 255, 255, 0.15); margin-left: -55px; margin-top: -55px; -webkit-animation: cell-move 10s 0.5s cubic-bezier(0.68, -0.15, 0.265, 1.55) infinite; animation: cell-move 10s 0.5s cubic-bezier(0.68, -0.15, 0.265, 1.55) infinite; filter: progid:DXImageTransform.Microsoft.Alpha(Opacity=80); opacity: 0.8;
}
.cell-target-circle .svg-circle { width: 100%; height: 100%; stroke: white;
}
.cell-target-circle .svg-circle path { stroke-width: 1px; stroke-dasharray: 800; stroke-dashoffset: 0;
}
.cell-target-circle .cell-target-crosshair { position: absolute; width: 1px; height: 12%; left: 50%; top: 44%; background: white; -moz-transition: cubic-bezier(0.68, -0.15, 0.265, 1.55) 0.5s; -o-transition: cubic-bezier(0.68, -0.15, 0.265, 1.55) 0.5s; -webkit-transition: cubic-bezier(0.68, -0.15, 0.265, 1.55) 0.5s; transition: cubic-bezier(0.68, -0.15, 0.265, 1.55) 0.5s;
}
.cell-target-circle .cell-target-crosshair:after { display: block; content: ""; width: 1px; height: 100%; background: white; position: absolute; -moz-transform: rotate(90deg); -ms-transform: rotate(90deg); -webkit-transform: rotate(90deg); transform: rotate(90deg);
}
.cell-target-circle.outer { width: 680px; height: 680px; margin-left: -285px; margin-top: -285px; box-shadow: 0px 0px 1px 0px rgba(255, 255, 255, 0.8); filter: progid:DXImageTransform.Microsoft.Alpha(Opacity=14); opacity: 0.14; -webkit-animation: cell-move 10s 0.8s cubic-bezier(0.68, -0.15, 0.265, 1.55) infinite; animation: cell-move 10s 0.8s cubic-bezier(0.68, -0.15, 0.265, 1.55) infinite;
}
.cell-target-circle.outer .svg-circle { -moz-transition: cubic-bezier(0.68, -0.15, 0.265, 1.55) 0.4s; -o-transition: cubic-bezier(0.68, -0.15, 0.265, 1.55) 0.4s; -webkit-transition: cubic-bezier(0.68, -0.15, 0.265, 1.55) 0.4s; transition: cubic-bezier(0.68, -0.15, 0.265, 1.55) 0.4s;
}
.cell-target-circle.outer .svg-circle path { stroke-dasharray: 2200;
}
@-webkit-keyframes cell-move { 0% { -moz-transform: translate(0, 0); -ms-transform: translate(0, 0); -webkit-transform: translate(0, 0); transform: translate(0, 0); } 33% { -moz-transform: translate(50px, 25px); -ms-transform: translate(50px, 25px); -webkit-transform: translate(50px, 25px); transform: translate(50px, 25px); } 66% { -moz-transform: translate(65px, -40px); -ms-transform: translate(65px, -40px); -webkit-transform: translate(65px, -40px); transform: translate(65px, -40px); } 100% { -moz-transform: translate(0, 0); -ms-transform: translate(0, 0); -webkit-transform: translate(0, 0); transform: translate(0, 0); }
}
@keyframes cell-move { 0% { -moz-transform: translate(0, 0); -ms-transform: translate(0, 0); -webkit-transform: translate(0, 0); transform: translate(0, 0); } 33% { -moz-transform: translate(50px, 25px); -ms-transform: translate(50px, 25px); -webkit-transform: translate(50px, 25px); transform: translate(50px, 25px); } 66% { -moz-transform: translate(65px, -40px); -ms-transform: translate(65px, -40px); -webkit-transform: translate(65px, -40px); transform: translate(65px, -40px); } 100% { -moz-transform: translate(0, 0); -ms-transform: translate(0, 0); -webkit-transform: translate(0, 0); transform: translate(0, 0); }
}
@-webkit-keyframes cell-inner-move { 0% { -moz-transform: translate(10px, -10px); -ms-transform: translate(10px, -10px); -webkit-transform: translate(10px, -10px); transform: translate(10px, -10px); } 26%, 36% { -moz-transform: translate(-10px, -10px); -ms-transform: translate(-10px, -10px); -webkit-transform: translate(-10px, -10px); transform: translate(-10px, -10px); } 65%, 68% { -moz-transform: translate(-10px, 10px); -ms-transform: translate(-10px, 10px); -webkit-transform: translate(-10px, 10px); transform: translate(-10px, 10px); } 99%, 100% { -moz-transform: translate(10px, -10px); -ms-transform: translate(10px, -10px); -webkit-transform: translate(10px, -10px); transform: translate(10px, -10px); }
}
@keyframes cell-inner-move { 0% { -moz-transform: translate(10px, -10px); -ms-transform: translate(10px, -10px); -webkit-transform: translate(10px, -10px); transform: translate(10px, -10px); } 26%, 36% { -moz-transform: translate(-10px, -10px); -ms-transform: translate(-10px, -10px); -webkit-transform: translate(-10px, -10px); transform: translate(-10px, -10px); } 65%, 68% { -moz-transform: translate(-10px, 10px); -ms-transform: translate(-10px, 10px); -webkit-transform: translate(-10px, 10px); transform: translate(-10px, 10px); } 99%, 100% { -moz-transform: translate(10px, -10px); -ms-transform: translate(10px, -10px); -webkit-transform: translate(10px, -10px); transform: translate(10px, -10px); }
}
html, body { height: 100%; overflow: hidden; background: url('data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiPz4gPHN2ZyB2ZXJzaW9uPSIxLjEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGRlZnM+PHJhZGlhbEdyYWRpZW50IGlkPSJncmFkIiBncmFkaWVudFVuaXRzPSJ1c2VyU3BhY2VPblVzZSIgY3g9IjUwJSIgY3k9IjUwJSIgcj0iMTAwJSI+PHN0b3Agb2Zmc2V0PSIwJSIgc3RvcC1jb2xvcj0iIzBkMTUyOCIvPjxzdG9wIG9mZnNldD0iMTAwJSIgc3RvcC1jb2xvcj0iIzA3MGIxNSIvPjwvcmFkaWFsR3JhZGllbnQ+PC9kZWZzPjxyZWN0IHg9IjAiIHk9IjAiIHdpZHRoPSIxMDAlIiBoZWlnaHQ9IjEwMCUiIGZpbGw9InVybCgjZ3JhZCkiIC8+PC9zdmc+IA=='); background: -moz-radial-gradient(#0d1528, #070b15); background: -webkit-radial-gradient(#0d1528, #070b15); background: radial-gradient(#0d1528, #070b15);
}
Cell Focusing - Script Codes JS Codes
jQuery(function( $ ){ focusInterval(); var focusIntervalID = window.setInterval(focusInterval, 10000);
});
function focusInterval() { window.setTimeout(function(){ focusCell(1); }, 0); window.setTimeout(function(){ focusCell(2); }, 3300); window.setTimeout(function(){ focusCell(3); }, 6600);
}
function focusCell(step) { $cell = $('.cell'); $crosshair = $('.cell-target-crosshair'); $outerCircle = $('.cell-target-circle.outer .svg-circle'); if (step == 1) { $cell.css({ 'filter' : 'blur(4px)', '-webkit-filter' : 'blur(4px)', 'width' : '120px', 'left' : '44.8%', 'top' : '44.8%' }); $crosshair.css({ 'transform' : 'rotate(0deg)', '-webkit-transform' : 'rotate(0deg)' }); $outerCircle.css({ 'transform' : 'scale(1)', '-webkit-transform' : 'scale(1)' }); } else if (step == 2) { $cell.css({ 'filter' : 'blur(2px)', '-webkit-filter' : 'blur(2px)', 'width' : '115px', 'left' : '44.9%', 'top' : '44.9%' }); $crosshair.css({ 'transform' : 'rotate(45deg)', '-webkit-transform' : 'rotate(45deg)' }); $outerCircle.css({ 'transform' : 'scale(0.9)', '-webkit-transform' : 'scale(0.9)' }); } else if (step == 3) { $cell.css({ 'filter' : 'blur(0px)', '-webkit-filter' : 'blur(0px)', 'width' : '110px','left' : '45%', 'top' : '45%' }); $crosshair.css({ 'transform' : 'rotate(90deg)', '-webkit-transform' : 'rotate(90deg)' }); $outerCircle.css({ 'transform' : 'scale(0.8)', '-webkit-transform' : 'scale(0.8)' }); }
}
Developer | Jon Ambas |
Username | jonambas |
Uploaded | October 19, 2022 |
Rating | 4 |
Size | 4,757 Kb |
Views | 4,048 |
Find the perfect freelance services for your business! Fiverr's mission is to change how the world works together. Fiverr connects businesses with freelancers offering digital services in 500+ categories. Find Developer!
Name | Size |
Bee Mine | 5,531 Kb |
Playing with SVGs | 3,215 Kb |
Coffee | 2,651 Kb |
Sidebar Thing | 2,779 Kb |
A Pen by Jon Ambas | 1,826 Kb |
Drip Drop | 3,011 Kb |
Polygons with clip-path | 4,602 Kb |
Happy New Years | 7,291 Kb |
Cubes | 3,469 Kb |
Looping through a sprite sheet | 2,897 Kb |
Jasper is the AI Content Generator that helps you and your team break through creative blocks to create amazing, original content 10X faster. Discover all the ways the Jasper AI Content Platform can help streamline your creative workflows. Start For Free!
Name | Username | Size |
Sticky notes with CSS3 | HaiNguyen007 | 2,146 Kb |
Pure CSS candle light animation by One element | Ksksoft | 2,193 Kb |
Resizable SASS Icons | Marianarlt | 7,611 Kb |
Click Based Rotation Demo | Zeaklous | 2,086 Kb |
Brown by pure CSS, no image, no javascript | Aaronchuo | 2,652 Kb |
Drill-down Map | Good886 | 8,484 Kb |
CSS3 Form Page Design | Rssatnam | 3,613 Kb |
Simple personal profile | Miroot | 2,856 Kb |
A Pen by Anoop | Anoopjohn | 330,760 Kb |
Disable JavaScript execution from console | Ludviglindblom | 2,534 Kb |
Surf anonymously, prevent hackers from acquiring your IP address, send anonymous email, and encrypt your Internet connection. High speed, ultra secure, and easy to use. Instant setup. Hide Your IP Now!