Last active
May 3, 2024 05:23
-
-
Save csssecrets/bda1bf6b0c4adbcea63d to your computer and use it in GitHub Desktop.
Revisions
-
csssecrets revised this gist
Apr 19, 2016 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -15,7 +15,7 @@ body { .circular svg { display: block; overflow: visible; transition: 10s linear transform; } .circular svg:hover { transform: rotate(-2turn); } -
csssecrets revised this gist
Feb 6, 2015 . 4 changed files with 40 additions and 12 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -2,14 +2,20 @@ * Text on a circle */ body { font: bold 120% Helvetica, sans-serif; } .circular { width: 30em; height: 30em; margin: 4em auto 0; } .circular svg { display: block; overflow: visible; xtransition: 10s linear transform; } .circular svg:hover { transform: rotate(-2turn); } This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,8 +1,3 @@ <div class="circular"> circular reasoning works because </div> This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1 +1,28 @@ function $$(selector, context) { context = context || document; var elements = context.querySelectorAll(selector); return Array.prototype.slice.call(elements); } $$('.circular').forEach(function(el) { var NS = "http://www.w3.org/2000/svg"; var svg = document.createElementNS(NS, "svg"); svg.setAttribute("viewBox", "0 0 100 100"); var circle = document.createElementNS(NS, "path"); circle.setAttribute("d", "M0,50 a50,50 0 1,1 0,1z"); circle.setAttribute("id", "circle"); var text = document.createElementNS(NS, "text"); var textPath = document.createElementNS(NS, "textPath"); textPath.setAttributeNS("http://www.w3.org/1999/xlink", 'xlink:href', '#circle'); textPath.textContent = el.textContent; text.appendChild(textPath); svg.appendChild(circle); svg.appendChild(text); el.textContent = ''; el.appendChild(svg); }); This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1 +1 @@ {"view":"split","fontsize":"100","seethrough":"","prefixfree":"1","page":"css"} -
csssecrets revised this gist
Feb 6, 2015 . 1 changed file with 4 additions and 4 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -2,7 +2,7 @@ * Text on a circle */ .circular svg { display: block; overflow: visible; width: 70vmin; @@ -12,7 +12,7 @@ transition: 10s linear; } .circular svg:hover { transform: rotate(-2turn); } .circular text { fill: currentColor } .circular path { fill: none; } -
csssecrets revised this gist
Feb 6, 2015 . 2 changed files with 8 additions and 11 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -2,20 +2,17 @@ * Text on a circle */ .circular > svg { display: block; overflow: visible; width: 70vmin; height: 70vmin; font: bold 120% Helvetica, sans-serif; margin: 3em auto 0; transition: 10s linear; } .circular > svg:hover { transform: rotate(-2turn); } .circular > svg text { fill: currentColor } .circular > svg path { fill: none; } This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,6 +1,6 @@ <div class="circular"> <svg viewBox="0 0 100 100"> <path d="M0,50 a50,50 0 1,1 0,1z" id="circle" /> <text><textPath xlink:href="#circle"> circular reasoning works because </textPath></text> -
csssecrets revised this gist
Feb 6, 2015 . 1 changed file with 2 additions and 2 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -12,10 +12,10 @@ div { div > svg { display: block; overflow: visible; transition: 10s linear; } div > svg:hover { transform: rotate(-2turn); } div > svg text { fill: currentColor } div > svg path { fill: none; } -
csssecrets revised this gist
Feb 6, 2015 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -12,7 +12,7 @@ div { div > svg { display: block; overflow: visible; transition: 5s linear; } div > svg:hover { transform: rotate(1turn); } -
csssecrets revised this gist
Feb 6, 2015 . 2 changed files with 10 additions and 18 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -3,27 +3,19 @@ */ div { width: 70vmin; height: 70vmin; font: bold 120% Helvetica, sans-serif; margin: 3em auto 0; } div > svg { display: block; overflow: visible; transition: .5s linear; } div > svg:hover { transform: rotate(1turn); } div > svg text { fill: currentColor } div > svg path { fill: none; } This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,8 +1,8 @@ <div> <svg viewBox="0 0 100 100"> <path d="M 0,50 a 50,50 0 1,1 0,.01" id="circle" /> <text><textPath xlink:href="#circle"> circular reasoning works because </textPath></text> </svg> </div> -
csssecrets created this gist
Feb 6, 2015 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,29 @@ /** * Text on a circle */ div { width: 25em; height: 25em; font: 70%/1.5 Baskerville, Palatino, serif; margin: 3em auto 0; } div > svg { display: block; overflow: visible; transition: 5s linear; } div > svg:hover { transform: rotate(1turn); } div > svg text { font: inherit; letter-spacing: .1em; text-anchor: middle; fill: currentColor; } div > svg path { fill: none; } This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,8 @@ <div> <svg viewBox="0 0 100 100"> <path d="M 0,50 a 50,50 0 1,1 0,.001" id="circle" /> <text><textPath startOffset="50%" xlink:href="#circle"> The only way to get rid of a temptation is to yield to it. </textPath></text> </svg> </div> This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1 @@ // alert('Hello world!'); This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1 @@ {"view":"split-vertical","fontsize":"100","seethrough":"","prefixfree":"1","page":"css"}