Get started with jquery.shapeshift CDN

MIT licensed

JQuery Shapeshift: Plugin for smooth HTML structure transitions with dynamic transformations.

Tags:
  • grid
  • column
  • drag
  • drop

Stable version

Copied!

How to start using jquery.shapeshift CDN


<!DOCTYPE html>
<html>
<head>
    <title>Get started with jquery.shapeshift CDN - cdnhub.io</title>
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.6.0/jquery.min.js">
    <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@fortawesome/[email protected]/css/fontawesome.min.css">
    <script src="https://cdn.cdnhub.io/jquery.shapeshift/2.0.0/jquery.shapeshift.min.js"></script>
    <style>
        #shape {
            width: 100px;
            height: 100px;
            background-color: #4CAF50;
            border-radius: 50%;
        }
    </style>
</head>
<body>
    <button id="change-shape">Change Shape</button>
    <div id="shape"></div>

    <script>
        $(document).ready(function() {
            $('#change-shape').click(function() {
                $('#shape').shapeshift({
                    type: 'rectangle',
                    width: 150,
                    height: 50,
                    borderRadius: 0,
                    backgroundColor: '#FF5722'
                });
            });
        });
    </script>
</body>
</html>
Copied!
Copied!

All versions