JQuery Social Media Ribbon Links
How do I make an jquery social media ribbon links?
What is a jquery social media ribbon links? How do you make a jquery social media ribbon links? This script and codes were developed by Tim Normington on 05 December 2022, Monday.
JQuery Social Media Ribbon Links - Script Codes HTML Codes
<!DOCTYPE html>
<html >
<head> <meta charset="UTF-8"> <title>jQuery Social Media Ribbon Links</title> <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/normalize/5.0.0/normalize.min.css"> <link rel='stylesheet prefetch' href='https://maxcdn.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css'> <link rel="stylesheet" href="css/style.css">
</head>
<body> <div class="container"></div> <script src='https://cdnjs.cloudflare.com/ajax/libs/jquery/3.1.1/jquery.min.js'></script> <script src="js/index.js"></script>
</body>
</html>
JQuery Social Media Ribbon Links - Script Codes CSS Codes
* { margin: 0; padding: 0; box-sizing: border-box;
}
body { display: flex; align-items: center; justify-content: center; height: 100vh; background-color: gray; padding: 1em;
}
.container { max-height: 400px; height: 100%; max-width: 400px; width: 100%; background-color: white;
}
.ribbon { transform: rotateZ(-45deg); transition: all 0.25s ease-out; cursor: pointer; box-shadow: 0 5px 25px rgba(0, 0, 0, 0.6);
}
.ribbon-wrapper { position: absolute; overflow: hidden; padding: 6em 0; min-width: 20em;
}
.ribbon-wrapper.top { top: 0;
}
.ribbon-wrapper.top .ribbon:hover { margin-top: 6em;
}
.ribbon-wrapper.right { right: 0; display: flex; justify-content: flex-end;
}
.ribbon-wrapper.right .ribbon { margin-right: -14em;
}
.ribbon-wrapper.right .ribbon:hover { margin-right: -6em;
}
.ribbon-wrapper.left { left: 0;
}
.ribbon-wrapper.bottom { bottom: 0;
}
JQuery Social Media Ribbon Links - Script Codes JS Codes
"use strict";
$.fn.ribbonify = function (options) { var settings = $.extend({ // These are the defaults. color: "#556b2f", backgroundColor: "#1DA1F2", position: "top left", links: { twitter: "https://twitter.com/tnormington" } }, options); this.css('position', 'relative'); var $wrapper = $('<div class="ribbon-wrapper" />').addClass(settings.position); for (var link in settings.links) { var $ribbon = $.fn.ribbonify.createRibbon(settings.backgroundColor, 300, 150); $ribbon.append('text').attr('font-family', 'FontAwesome').attr('font-size', function (d) { return d.size + 'em'; }).text(function (d) { return ""; }); $wrapper.append($ribbon); } this.append($wrapper);
};
$.fn.ribbonify.createRibbon = function (color, w, h) { var $ribbon = $('<svg class="ribbon" width="' + w + '" height="' + h + '" viewBox="0 0 ' + w + ' ' + h + '" xmlns="http://www.w3.org/2000/svg"><path fill="' + color + '" d="M0 0h' + w + 'v' + h + 'H0z" /></svg>'); $ribbon.find('svg').append('<a xlink:href="https://www.google.co.uk/" target="_top"><text x="50%" y="50%" style="text-anchor: middle">google</text></a>'); return $ribbon;
};
$(document).ready(function () { $('.container').ribbonify({ position: 'top right' });
});
Developer | Tim Normington |
Username | tnormington |
Uploaded | December 05, 2022 |
Rating | 3 |
Size | 3,904 Kb |
Views | 12,144 |
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 |
Parellelogram Link Hover Effect | 2,618 Kb |
A Pen by Tim Normington | 1,949 Kb |
Mobile Drop Down | 4,856 Kb |
Twitch Notification Concept | 2,589 Kb |
SVG Coffee Animation | 4,174 Kb |
Loading Bar Animation | 3,453 Kb |
Social Media Sidebar | 2,884 Kb |
Loading Animation | 1,737 Kb |
Footer Link Navigation | 2,196 Kb |
Camping Checklist | 2,671 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 |
JS Countdown Timer | Ayoungh | 2,435 Kb |
Countdown Timer | Massiebn | 3,001 Kb |
Weird glowy CSS3 game | Toneworm | 3,684 Kb |
Fading Navigation Bar | J-w-v | 2,805 Kb |
Animated Vertical CSS3 Menu Black | MaCeLMp4 | 2,750 Kb |
TweenMax transformOrigin Bubble | Nicolund | 2,209 Kb |
Sticky Navbar | Phantomesse | 5,106 Kb |
Improved Page Flipping Effect | Usaphp | 5,201 Kb |
DFF Website | Hawcubite | 10,123 Kb |
My three.js practice | Esambino | 3,203 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!