A Pen by Vineeth.TR
How do I make an a pen by vineeth.tr?
What is a a pen by vineeth.tr? How do you make a a pen by vineeth.tr? This script and codes were developed by Vineeth.TR on 10 September 2022, Saturday.
A Pen by Vineeth.TR - Script Codes HTML Codes
<!DOCTYPE html>
<html >
<head> <meta charset="UTF-8"> <title>A Pen by Vineeth.TR</title> <link rel="stylesheet" href="css/style.css">
</head>
<body>
<div class="container"> <div class="rest"></div> <div class="system-circle"></div>
</div> <script src='http://cdnjs.cloudflare.com/ajax/libs/jquery/2.2.2/jquery.min.js'></script> <script src="js/index.js"></script>
</body>
</html>
A Pen by Vineeth.TR - Script Codes CSS Codes
* { box-sizing: border-box; font-family: Arial, "Helvetica Neue", Helvetica, sans-serif;
}
.container { width: 820px; margin: auto;
}
.system-circle { width: 600px; height: 600px; margin: auto; border-radius: 50%; position: relative; display: inline-block;
}
.system-circle .circle { width: 50px; height: 50px; position: absolute; left: 0; top: 0;
}
.system-circle .circle img { width: 100%; height: 100%; border-radius: 50%; border: 2px solid #F53;
}
.system-circle .planet { position: absolute; left: 0; right: 0; top: 0; bottom: 0; margin: auto; z-index: 50; cursor: pointer; width: 100px; height: 120px; pointer-events: none;
}
.system-circle .planet .circle { width: 100px; height: 100px;
}
.system-circle .planet .circle img { box-shadow: 0 0 0 1px #F53; border: 6px solid #fff; background: #f53;
}
.system-circle .planet .circle::before { top: 120px; opacity: 1; border: none; font-size: 14px;
}
.system-circle .planet .legend { left: 50%; -webkit-transform: translateX(-50%); transform: translateX(-50%); top: 105px; color: #F53;
}
.system-circle .legend { position: absolute; left: 60px; top: 15px; color: #555; white-space: nowrap;
}
.system-circle .satellite { height: 50px; position: absolute; left: 0; right: 0; top: 0; bottom: 0; cursor: pointer; margin: auto; -webkit-animation: fade 1s ease-in; animation: fade 1s ease-in; z-index: 15;
}
.orbit { position: absolute; left: 0; top: 0; width: 100%; z-index: 20; height: 100%; -webkit-animation: blink 1s ease-in; animation: blink 1s ease-in;
}
.orbit .ripple { position: absolute; width: 550px; height: 550px; border: 1px solid #F53; left: 50%; top: 50%; -webkit-transform: translate(-50%, -50%); transform: translate(-50%, -50%); border-radius: 50%; z-index: 2; -webkit-animation: ripple 0.4s ease-in; animation: ripple 0.4s ease-in;
}
.rest { display: inline-block; position: relative; float: left; margin-top: 50px; width: 200px; min-height: 1px; margin-right: 20px; text-align: center;
}
.rest .planet { position: relative; height: 150px; cursor: pointer;
}
.rest .planet .circle { position: relative; z-index: 50;
}
.rest .planet .circle img { border: 2px solid #FF9800; width: 60px; height: 60px; border-radius: 100%;
}
.rest .planet .legend { display: block; color: #FF9800; position: relative; z-index: 5; background: #fff;
}
.rest .planet:first-child::after { display: none;
}
.rest .planet:last-child .circle, .rest .planet:last-child .legend { opacity: 0; -webkit-animation: fade 1s 0.4s ease-in; animation: fade 1s 0.4s ease-in; -webkit-animation-fill-mode: forwards; animation-fill-mode: forwards;
}
.rest .planet:last-child::after { -webkit-animation: lining 0.4s ease-in; animation: lining 0.4s ease-in;
}
.rest .planet.noAnimation::after, .rest .planet.noAnimation .circle, .rest .planet.noAnimation .legend { opacity: 1; -webkit-animation: none; animation: none;
}
.rest .planet::after { content: ''; position: absolute; width: 2px; background-color: #FF9800; left: 0; right: 0; margin: auto; top: -80px; height: 80px; z-index: 1;
}
.planet .circle::before, .satellite .circle::before { content: attr(data-tooltip); position: absolute; background: rgba(255, 255, 255, 0.7); padding: 4px 15px; border: 1px solid #f53; font-size: 12px; white-space: nowrap; left: 50%; -webkit-transform: translateX(-50%); transform: translateX(-50%); opacity: 0; top: 0; -webkit-transition: ease-in 0.3s; transition: ease-in 0.3s;
}
.planet .circle:hover::before, .satellite .circle:hover::before { top: -30px; opacity: 1; z-index: 15;
}
@-webkit-keyframes blink { 0% , 50% { -webkit-transform: scale(0.95, 0.95); transform: scale(0.95, 0.95); } 30% , 70% { -webkit-transform: scale(1.05, 1.05); transform: scale(1.05, 1.05); } 100% { -webkit-transform: scale(1, 1); transform: scale(1, 1); }
}
@keyframes blink { 0% , 50% { -webkit-transform: scale(0.95, 0.95); transform: scale(0.95, 0.95); } 30% , 70% { -webkit-transform: scale(1.05, 1.05); transform: scale(1.05, 1.05); } 100% { -webkit-transform: scale(1, 1); transform: scale(1, 1); }
}
@-webkit-keyframes fade { 0% { opacity: 0; } 100% { opacity: 1; }
}
@keyframes fade { 0% { opacity: 0; } 100% { opacity: 1; }
}
@-webkit-keyframes lining { 0% { height: 0; } 100% { height: 80px; }
}
@keyframes lining { 0% { height: 0; } 100% { height: 80px; }
}
@-webkit-keyframes ripple { 0% { height: 0; width: 0; box-shadow: 0 0 0 200px #F53 inset; } 100% { height: 550px; width: 550px; box-shadow: 0 0 0 200px transparent inset; }
}
@keyframes ripple { 0% { height: 0; width: 0; box-shadow: 0 0 0 200px #F53 inset; } 100% { height: 550px; width: 550px; box-shadow: 0 0 0 200px transparent inset; }
}
A Pen by Vineeth.TR - Script Codes JS Codes
var im1 = "https://2.bp.blogspot.com/-uc7vwy4WYyw/VEzcmsoYqcI/AAAAAAAACvg/4RUIx4XYcbw/s1600/thorsten%2Bpattberg%2Bphilosopher%2Bavatar1.png"
var ceo = "http://pickaface.net/includes/themes/clean/img/slide2.png";
var Organization = { parent: { name: 'Mohammed Rijas', designation: 'CEO', id: 1 }, child: [{ parent: { name: 'Shafeer Badharudeen', designation: 'CTO', id: 2 }, child: [ ] }, { parent: { name: ' Arun Hariharan', designation: 'VP Finance', id: 3 }, child: [ ] }, { parent: { name: 'Arun TM', designation: 'Associate Vice President - Human Resources', id: 4 }, child: [ ] }, { parent: { name: 'Manu Nair', designation: 'VP Client Relations', id: 5 }, child: [ ] }, { parent: { name: 'Tamojit Sengupta', designation: 'Account Anchor', id: 6 }, child: [ ] }, { parent: { name: 'Raja Sujith', designation: 'Account Anchor', id: 7 }, child: [ ] }, { parent: { name: 'Karthik Raveendran', designation: 'Global Head - Delivery', id: 8 }, child: [{ parent: { name: 'Rex Jhon', designation: 'Software Engineer', id: 9 }, child: [ ] }, { parent: { name: 'Rex Jhon', designation: 'Software Engineer', id: 10 }, child: [ ] }, { parent: { name: 'Rex Jhon', designation: 'Software Engineer', id: 11 }, child: [ ] }, { parent: { name: 'Rex Jhon', designation: 'Software Engineer', id: 12 }, child: [ ] }, { parent: { name: 'Rex Jhon', designation: 'Software Engineer', id: 13 }, child: [ ] }, { parent: { name: 'Rex Jhon', designation: 'Software Engineer', id: 53 }, child: [ ] }, { parent: { name: 'Rex Jhon', designation: 'Software Engineer', id: 54 }, child: [ ] }, { parent: { name: 'Rex Jhon', designation: 'Software Engineer', id: 55 }, child: [ ] }, { parent: { name: 'Rex Jhon', designation: 'Software Engineer', id: 56 }, child: [ ] }, { parent: { name: 'Rex Jhon', designation: 'Software Engineer', id: 57 }, child: [ ] }, { parent: { name: 'Rex Jhon', designation: 'Software Engineer', id: 58 }, child: [ ] }, { parent: { name: 'Rex Jhon', designation: 'Software Engineer', id: 59 }, child: [ ] }, { parent: { name: 'Rex Jhon', designation: 'Software Engineer', id: 60 }, child: [ ] }, { parent: { name: 'Rex Jhon', designation: 'Software Engineer', id: 14 }, child: [ ] }, { parent: { name: 'Vineeth', designation: 'Software Engineer', id: 15 }, child: [{ parent: { name: 'Alex wonconza dj', designation: 'Software Engineer', id: 16 }, child: [ ] },{ parent: { name: 'Alex wonconza dj', designation: 'Software Engineer', id: 17 }, child: [ ] },{ parent: { name: 'Tefni mira', designation: 'Software Engineer', id: 18 }, child: [{ parent: { name: 'Alex wonconza dj', designation: 'Software Engineer', id: 19 }, child: [ ] }, ] } ] }] }]
};
function populateTree(data){ var parent = drillDown(Organization,data.id); drawElement(parent);
}
function drillDown(element, id){ var el; if(element.parent.id ==id){ return element; } else{ $.each(element.child,function(index,elem){ el = drillDown(elem,id); } ) } return el;
}
function drawCircle(data) { console.log(data); var parent = JSON.parse(data.id); drawElement(parent);
}
function drawElement(data) { var planet = data.parent; var satellites = data.child; var id = planet.id; var nb = satellites.length $('.system-circle .planet').appendTo('.rest'); $('.system-circle').empty(); $('.system-circle').append("<div class='planet' onClick='populateTree(this)' id='"+ id +"' ><div data-tooltip='"+ planet.designation + "' class='circle' ><img src='" + ceo + "' /> </div><span class='legend'>" + planet.name + "</span></div> <div class='orbit'></div>"); $('.orbit').append('<div class="ripple"></div>'); for (var i = 0; i < nb; i++) { var rot = i * 360 / nb; var crot = 360 - rot; var id = satellites[i].parent.id; var pl = $('.orbit').append("<div id='" + JSON.stringify(satellites[i]) + "' onClick='drawCircle(this)' class='satellite'><div class='circle' data-tooltip='"+satellites[i].parent.designation+"' ><img src='" + im1 + "' ></div><span class='legend'>" + satellites[i].parent.name + "</span></div>"); if( 90 < rot && rot < 270 ){ $('.satellite:eq(' + i + ')').find('.legend').css('transform', 'rotate(180deg)'); } $('.satellite:eq(' + i + ')').css('transform', 'rotate(' + rot + 'deg)'); $('.satellite:eq(' + i + ')').find('.circle').css('transform', 'rotate(' + crot + 'deg)'); }
}
$('.rest').on('click', '.planet' , function(){ $(this).prev().addClass('noAnimation'); $(this).nextAll().remove(); $(this).remove();
});
drawElement(Organization);
Developer | Vineeth.TR |
Username | vineethtr |
Uploaded | September 10, 2022 |
Rating | 3 |
Size | 5,501 Kb |
Views | 52,624 |
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 |
Login form shake effect | 3,430 Kb |
Material Action buttons | 5,525 Kb |
Menu Model | 5,314 Kb |
Css3 Transform | 3,806 Kb |
Material Login | 5,848 Kb |
Loading | 3,699 Kb |
Download Button | 2,810 Kb |
Tag Me | 4,646 Kb |
Simple Spinner | 4,706 Kb |
Pagination | 4,753 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 |
Awesome Full Page Menu Nav | Ey_intuitive | 4,194 Kb |
Basic 3D Fullscreen Transition | Apetrov | 3,270 Kb |
Simple jQuery Slider | Jurbank | 2,874 Kb |
A Pen by Jess | Jessamyne | 5,100 Kb |
Mega menu | DimaZubkov | 5,066 Kb |
Particle Motion trajectories | Sniejadlik | 5,899 Kb |
A Pen by Mohomed Anees | Mohomedanees | 12,597 Kb |
Shop Talk logo made in CSS | Hugo | 19,368 Kb |
Simple, flat contact form | Zeaklous | 2,719 Kb |
Project -Show the Local Weather | Luciano_Britis | 2,583 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!