Skip to content

Commit 0fbec4d

Browse files
committed
Upload file: transform-by-heygrady.html
1 parent 97086f8 commit 0fbec4d

File tree

1 file changed

+378
-0
lines changed

1 file changed

+378
-0
lines changed
Lines changed: 378 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,378 @@
1+
<!DOCTYPE html>
2+
<html lang="en">
3+
<head>
4+
<meta charset="UTF-8">
5+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
6+
<title>jQuery 2d Transformation Plugin</title>
7+
<meta name="description" content="transform by heygrady. jQuery 2d transformation plugin">
8+
<meta name="author" content="heygrady">
9+
<meta name="robots" content="index, follow">
10+
<!-- Canonical URL -->
11+
<link rel="canonical" href="https://codehimblog.github.io/jquery-plugins/transform-by-heygrady.html">
12+
<!-- Favicon -->
13+
<link rel="icon" href="/favicon.ico" type="image/png">
14+
<!-- Bootstrap CSS -->
15+
<link href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css" rel="stylesheet">
16+
<!-- Bootstrap Icons -->
17+
<link href="https://cdn.jsdelivr.net/npm/bootstrap-icons/font/bootstrap-icons.css" rel="stylesheet">
18+
<link rel="stylesheet" href="/css/styles.css">
19+
</head>
20+
<body>
21+
<!-- Navbar -->
22+
<nav class="navbar navbar-expand-lg navbar-dark bg-dark fixed-top">
23+
<div class="container">
24+
<a class="navbar-brand" href="https://codehimblog.github.io">
25+
<i class="bi bi-box-seam me-2"></i>CodehimBlog
26+
</a>
27+
<button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbarNav" aria-controls="navbarNav" aria-expanded="false" aria-label="Toggle navigation">
28+
<span class="navbar-toggler-icon"></span>
29+
</button>
30+
<div class="collapse navbar-collapse" id="navbarNav">
31+
<ul class="navbar-nav ms-auto">
32+
<li class="nav-item">
33+
<a class="nav-link" href="https://codehimblog.github.io/"><i class="bi bi-house-door me-1"></i> Home</a>
34+
</li>
35+
<li class="nav-item">
36+
<a class="nav-link" href="https://codehimblog.github.io/projects/"><i class="bi bi-box me-1"></i> Projects</a>
37+
</li>
38+
<li class="nav-item">
39+
<a class="nav-link" href="https://codehimblog.github.io/about.html"><i class="bi bi-book me-1"></i> About</a>
40+
</li>
41+
<li class="nav-item">
42+
<a class="nav-link" href="https://codehimblog.github.io/contact.html"><i class="bi bi-envelope me-1"></i> Contact</a>
43+
</li>
44+
</ul>
45+
</div>
46+
</div>
47+
</nav>
48+
49+
<!-- Breadcrumbs -->
50+
<div class="container mt-4 breadcrumbs">
51+
<nav aria-label="breadcrumb">
52+
<ol class="breadcrumb mb-0">
53+
<li class="breadcrumb-item"><a href="https://codehimblog.github.io/">Home</a></li>
54+
<li class="breadcrumb-item"><a href="https://codehimblog.github.io/jquery-plugins/">jQuery Plugins</a></li>
55+
<li class="breadcrumb-item active" aria-current="page">Transform</li>
56+
</ol>
57+
</nav>
58+
</div>
59+
60+
<!-- Schema Markup for Breadcrumbs -->
61+
<script type="application/ld+json">
62+
{
63+
"@context": "https://schema.org",
64+
"@type": "BreadcrumbList",
65+
"itemListElement": [
66+
{
67+
"@type": "ListItem",
68+
"position": 1,
69+
"name": "Home",
70+
"item": "https://codehimblog.github.io/"
71+
},
72+
{
73+
"@type": "ListItem",
74+
"position": 2,
75+
"name": "jQuery Plugins",
76+
"item": "https://codehimblog.github.io/jquery-plugins/"
77+
},
78+
{
79+
"@type": "ListItem",
80+
"position": 3,
81+
"name": "Transform",
82+
"item": "https://codehimblog.github.io/projects/{{packageSlug}}"
83+
}
84+
]
85+
}
86+
</script>
87+
<!-- Main Content -->
88+
<div class="container mt-3">
89+
<div class="row">
90+
<!-- Main Details -->
91+
<main class="col-md-8 site-main p-0">
92+
<article>
93+
<!-- Project Name & Description -->
94+
<h1 id="packageName">Transform</h1>
95+
<p id="packageDescription" class="text-muted">jQuery 2d transformation plugin</p>
96+
97+
98+
99+
<!-- Statistics -->
100+
<div class="stat-row d-flex justify-content-around align-items-center text-center mb-2">
101+
<div class="stat-box d-flex align-items-center flex-column-mobile">
102+
<i class="bi bi-star-fill text-warning mb-2"></i>
103+
<div>
104+
<span id="stargazersCount" class="stat-value">437</span>
105+
<p class="stat-label mb-0">Stars</p>
106+
</div>
107+
</div>
108+
109+
<div class="stat-box d-flex align-items-center flex-column-mobile">
110+
<i class="bi bi-box-arrow-in-down mb-2"></i>
111+
<div>
112+
<span id="repoSize" class="stat-value">3.49 MB</span>
113+
<p class="stat-label mb-0">Size</p>
114+
</div>
115+
</div>
116+
117+
<div class="stat-box d-flex align-items-center flex-column-mobile">
118+
<i class="bi bi-arrow-repeat text-secondary mb-2"></i>
119+
<div>
120+
<span id="forksCount" class="stat-value">87</span>
121+
<p class="stat-label mb-0">Forks</p>
122+
</div>
123+
</div>
124+
125+
<div class="stat-box d-flex align-items-center flex-column-mobile">
126+
<i class="bi bi-exclamation-circle text-danger mb-2"></i>
127+
<div>
128+
<span id="openIssuesCount" class="stat-value">20</span>
129+
<p class="stat-label mb-0">Open Issues</p>
130+
</div>
131+
</div>
132+
</div>
133+
134+
135+
<div class="ad-unit ad-apt">
136+
<script async src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js?client=ca-pub-7089100907045419"
137+
crossorigin="anonymous"></script>
138+
<!-- CodehimBlog APT -->
139+
<ins class="adsbygoogle"
140+
style="display:block"
141+
data-ad-client="ca-pub-7089100907045419"
142+
data-ad-slot="4990741913"
143+
data-ad-format="auto"
144+
data-full-width-responsive="true"></ins>
145+
<script>
146+
(adsbygoogle = window.adsbygoogle || []).push({});
147+
</script>
148+
</div>
149+
150+
<div class="row mb-4">
151+
<!-- Tabs (Left) -->
152+
<div class="col-12 col-md-6 d-flex justify-content-start mb-3 mb-md-0">
153+
<ul class="nav nav-tabs" id="infoTabs" role="tablist">
154+
<li class="nav-item" role="presentation">
155+
<button class="nav-link active" id="installation-tab" data-bs-toggle="tab" data-bs-target="#installation" type="button" role="tab" aria-controls="installation" aria-selected="true">
156+
<i class="bi bi-file-earmark-text"></i> Readme
157+
</button>
158+
</li>
159+
<li class="nav-item" role="presentation">
160+
<button class="nav-link" id="changelog-tab" data-bs-toggle="tab" data-bs-target="#changelog" type="button" role="tab" aria-controls="changelog" aria-selected="false">
161+
<i class="bi bi-journal-text me-2"></i> Changelog
162+
</button>
163+
</li>
164+
</ul>
165+
</div>
166+
167+
<!-- Action Buttons (Right) -->
168+
<div class="col-12 col-md-6 d-flex align-items-center justify-content-end">
169+
<a href="https://github.com/heygrady/transform/archive/refs/heads/master.zip" class="btn btn-primary me-2 action-btn" id="downloadBtn">
170+
<i class="bi bi-cloud-download me-2"></i>Download ZIP
171+
</a>
172+
<a href="https://github.com/heygrady/transform" target="_blank" class="btn btn-outline-secondary action-btn" id="githubBtn">
173+
<i class="bi bi-github me-2"></i>Fork on GitHub
174+
</a>
175+
</div>
176+
</div>
177+
<div class="tab-content mt-3" id="infoTabsContent">
178+
<div class="tab-pane fade show active" id="installation" role="tabpanel" aria-labelledby="installation-tab">
179+
<h1>NO LONGER MAINTAINED</h1>
180+
<p>As a note, I'm no longer maintaining this library. There was a much simpler library by Louis Remi. I forked it a while back and ported over the portions of my library that were missing from his. Louis' approach is much simpler and more performant.</p>
181+
<p>My fork is <a href="https://github.com/heygrady/jquery.transform.js">here</a></p>
182+
<p>Louis Remi's is <a href="https://github.com/louisremi/jquery.transform.js">here</a></p>
183+
<h1>2D Transformations</h1>
184+
<p>This library uses native CSS3 transformations in supported browsers and relies on the matrix filter in Internet Explorer 8 and below.</p>
185+
<p>NOTE: In Internet Explorer 8 and below, the transform-origin and the translate functions are simulated using relative positioning. Because of this, in Internet Explorer 8 and below, the top and left position of an element will be incorrect after it has been transformed. The <a href="https://github.com/heygrady/transform/issues#issue/6">solution</a> is to wrap the element that is to be transformed and position that wrapper instead.</p>
186+
<ul>
187+
<li>Since 0.9.0, proper units are required</li>
188+
<li>Since 0.9.0, jQuery 1.4.3 or above is required</li>
189+
</ul>
190+
<h2>Supported Browsers</h2>
191+
<ul>
192+
<li>Native CSS3 Support
193+
<ul>
194+
<li>FireFox 3.5+</li>
195+
<li>Safari 3.1+</li>
196+
<li>Chrome</li>
197+
<li>Opera 10.5+</li>
198+
<li>Internet Explorer 9+</li>
199+
</ul></li>
200+
<li>Matrix Filter Support
201+
<ul>
202+
<li>Internet Explorer 5.5 - 8</li>
203+
</ul></li>
204+
</ul>
205+
<h2>Usage</h2>
206+
<pre><code>// Rotate 30 Degrees
207+
$('#example').transform({rotate: '30deg'});
208+
209+
// Use CSS Hooks to Rotate
210+
$('#example').css({rotate: '30deg'});
211+
212+
// Animate the rotation
213+
$('#example').animate({rotate: '30deg'});
214+
215+
// Go Crazy
216+
$('#example').transform({
217+
matrix: [1, 0, 0, 1, 0, 0], //applies a matrix
218+
reflect: true, //same as rotate(180deg)
219+
reflectX: true, //mirrored upside down
220+
reflectXY: true, //same as reflectX + rotate(-90deg)
221+
reflectY: true, //mirrored
222+
rotate: '45deg', //rotates 45 degrees
223+
skew: ['10deg', '10deg'], //skews 10 degrees on the x and y axis
224+
skewX: '10deg', //skews 10 degrees on the x axis
225+
skewY: '10deg', //skews 10 degrees on the y axis
226+
scale: [1.5, 1.5], //scales by 1.5 on the x and y axis
227+
scaleX: 1.5, //scales by 1.5 on the x axis
228+
scaleY: 1.5, //scales by 1.5 on the y axis
229+
translate: ['20px', '20px'], //moves the transformation 20px on the x and y axis
230+
translateX: 20px', //moves the transformation 20px on the x axis
231+
translateY: '20px', //moves the transformation 20px on the y axis
232+
origin: ['20%', '20%'] //changes the transformation origin
233+
});
234+
235+
// Properties can be strings or arrays
236+
$('#example').css({skew: ['10deg', '10deg']});
237+
$('#example').css({skew: '10deg, 10deg'});
238+
239+
// For animation, arrays should be nested because of jQuery's per-property easing support
240+
$('#example').animate({skew: ['10deg', '10deg']}); // technically this defines nonsense easing of 10deg
241+
$('#example').animate({skew: [['10deg', '10deg']]}); // this is a friendlier way of supporting this</code></pre>
242+
</div>
243+
244+
<div class="tab-pane fade" id="changelog" role="tabpanel" aria-labelledby="changelog-tab">
245+
<ul id="changelogList">
246+
No changelog available.
247+
</ul>
248+
</div>
249+
250+
</div>
251+
252+
<div class="tags mb-2 mt-2">
253+
254+
</div>
255+
256+
</article>
257+
258+
259+
</main>
260+
<!-- Sidebar -->
261+
<aside class="col-md-4 p-0">
262+
<div class="sidebar">
263+
<!-- Owner Section -->
264+
<div class="sidebar-item mb-4">
265+
<div class="ad-unit">
266+
<script async src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js?client=ca-pub-7089100907045419"
267+
crossorigin="anonymous"></script>
268+
<!-- CodehimBlog Sidebar -->
269+
<ins class="adsbygoogle"
270+
style="display:block"
271+
data-ad-client="ca-pub-7089100907045419"
272+
data-ad-slot="8929986923"
273+
data-ad-format="auto"
274+
data-full-width-responsive="true"></ins>
275+
<script>
276+
(adsbygoogle = window.adsbygoogle || []).push({});
277+
</script>
278+
</div>
279+
<div class="d-flex align-items-center">
280+
<img src="https://avatars.githubusercontent.com/u/274076?v=4" alt="Owner Avatar" class="rounded-circle me-2 owner-avatar">
281+
<a href="https://github.com/heygrady" target="_blank" id="ownerName" class="sidebar-link">heygrady</a>
282+
</div>
283+
</div>
284+
285+
<!-- Metadata Section -->
286+
<div class="sidebar-item mb-2">
287+
<div class="metadata-item d-flex align-items-center">
288+
<i class="bi bi-calendar me-2"></i>
289+
<strong>Created At:</strong>
290+
<span id="createdAt" class="ms-1">May 12, 2010</span>
291+
</div>
292+
<div class="metadata-item d-flex align-items-center mt-2">
293+
<i class="bi bi-pencil-square me-2"></i>
294+
<strong>Last Updated:</strong>
295+
<span id="updatedAt" class="ms-1">November 20, 2024</span>
296+
</div>
297+
<div class="metadata-item d-flex align-items-center mt-2">
298+
<i class="bi bi-file-earmark-code me-2"></i>
299+
<strong>Language:</strong>
300+
<span id="language" class="ms-1">JavaScript</span>
301+
</div>
302+
303+
<div class="metadata-item d-flex align-items-center mt-2">
304+
<i class="bi bi-shield-check"></i>
305+
<strong>License:</strong>
306+
<span id="license" class="ms-1">Unknown</span>
307+
</div>
308+
<a href="#" target="_blank" class="btn btn-outline-dark btn-sm" id="homepageBtn">
309+
<i class="bi bi-house-door me-2"></i>Visit Homepage
310+
</a>
311+
312+
</div>
313+
314+
<div class="sidebar-item mb-2">
315+
<li>No dependencies!</li>
316+
</div>
317+
318+
<div class="sidebar-item">
319+
<h5 class="sidebar-title">Contributors</h5>
320+
<ul class="p-0" id="contributorsList">
321+
<ul class="list-group list-group-flush" id="contributorsList"><li class="list-group-item d-flex align-items-center contributor-item"><img src="https://avatars.githubusercontent.com/u/274076?v=4" alt="heygrady" class="rounded-circle me-3" style="width: 40px; height: 40px;"><div><a href="https://github.com/heygrady" target="_blank" class="text-decoration-none fw-bold">heygrady</a><p class="mb-0 text-muted small">57 contributions</p></div></li></ul>
322+
</ul>
323+
324+
</div>
325+
326+
<div class="ad-unit">
327+
<script async src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js?client=ca-pub-7089100907045419"
328+
crossorigin="anonymous"></script>
329+
<!-- CodehimBlog Skyscrapper -->
330+
<ins class="adsbygoogle"
331+
style="display:block"
332+
data-ad-client="ca-pub-7089100907045419"
333+
data-ad-slot="7469565592"
334+
data-ad-format="auto"
335+
data-full-width-responsive="true"></ins>
336+
<script>
337+
(adsbygoogle = window.adsbygoogle || []).push({});
338+
</script>
339+
</div>
340+
341+
</div>
342+
</aside>
343+
</div>
344+
</div>
345+
<!-- Footer -->
346+
<footer class="bg-dark text-white text-center py-3 page-footer">
347+
<div class="container">
348+
<p class="mb-2">© 2024 CodehimBlog - Powered by GitHub</p>
349+
<nav>
350+
<ul class="list-inline mb-0">
351+
<li class="list-inline-item">
352+
<a href="/privacy-policy.html" class="footer-link">Privacy Policy</a>
353+
</li>
354+
<li class="list-inline-item">
355+
<span class="text-white">|</span>
356+
</li>
357+
<li class="list-inline-item">
358+
<a href="/terms-and-conditions.html" class="footer-link">Terms and Conditions</a>
359+
</li>
360+
</ul>
361+
</nav>
362+
</div>
363+
</footer>
364+
<!-- Bootstrap Bundle JS -->
365+
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.bundle.min.js"></script>
366+
<script src="https://cdn.jsdelivr.net/gh/google/code-prettify@master/loader/run_prettify.js"></script>
367+
<script src="/js/script.js"></script>
368+
<!-- Google tag (gtag.js) -->
369+
<script async src="https://www.googletagmanager.com/gtag/js?id=G-FG2ZX76XGT"></script>
370+
<script>
371+
window.dataLayer = window.dataLayer || [];
372+
function gtag(){dataLayer.push(arguments);}
373+
gtag('js', new Date());
374+
375+
gtag('config', 'G-FG2ZX76XGT');
376+
</script>
377+
</body>
378+
</html>

0 commit comments

Comments
 (0)