<html>
<head>
<title>CSS Transform Fun - RJM Programming - November, 2026</title>
<style>
* {
margin: 0 0 0 0;
padding: 0 0 0 0;
}
</style>
<script type=text/javascript>
var imis='/HTMLCSS/HYP_50M_SR_W.jpg', pos3=-999, pos4=-999;
var ordersofar=[], nextinorder=1, cp='';
var tsuff=' ... another double click makes this be the first applied CSS transform operation affecting the display.';
function reorder(itexto) {
var neword=[], keep_going=true, jof=0, lookfor=1, nextass=2;
if (('' + itexto.id).trim() != '') {
if (eval('' + ordersofar.length) == 0) {
ordersofar.push(itexto.id);
//cp=String.fromCodePoint(eval('0x00003' + nextinorder),0x00fe0f,0x0020e3);
//alert(cp);
//itexto.style.backgroundImage="url(\"data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewport='0 0 100 100' style='font-family:Verdana;font-size:10px;color:rgba(0,0,0,0.5);'><text y='50%'>" + "\\00003" + nextinorder + "\\00fe0f\0020e3" + "</text></svg>\")";
itexto.style.backgroundImage="url(\"data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewport='0 0 100 100' style='font-family:Verdana;font-size:10px;color:rgba(0,0,0,0.5);'><text y='50%'>" + String.fromCodePoint(eval('0x00003' + nextinorder),0x00fe0f,0x0020e3) + "</text></svg>\")";
itexto.style.backgroundRepeat='no-repeat';
if (1 == 1 || window.self == window.parent) {
itexto.style.backgroundPosition='center right';
} else {
itexto.style.backgroundPosition='center left';
}
itexto.setAttribute('data-order', '' + nextinorder);
nextinorder++;
} else if (ordersofar.indexOf(itexto.id) != -1) {
if (itexto.outerHTML.indexOf(' data-order="') != -1 && itexto.outerHTML.indexOf(' data-order="1"') == -1) {
neword=[itexto.id];
while (keep_going) {
keep_going=false;
for (jof=0; jof<ordersofar.length; jof++) {
if (ordersofar[jof] != neword[0] && !keep_going) {
if (('' + document.getElementById(ordersofar[jof]).getAttribute('data-order')) == ('' + lookfor)) {
neword.push(ordersofar[jof]);
document.getElementById(ordersofar[jof]).setAttribute('data-order', '' + nextass);
document.getElementById(ordersofar[jof]).style.backgroundImage="url(\"data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewport='0 0 100 100' style='font-family:Verdana;font-size:10px;color:rgba(0,0,0,0.5);'><text y='50%'>" + String.fromCodePoint(eval('0x00003' + nextass),0x00fe0f,0x0020e3) + "</text></svg>\")";
nextass++;
lookfor++;
if (('' + document.getElementById(neword[0]).getAttribute('data-order')) == ('' + lookfor)) {
lookfor++;
}
keep_going=true;
}
}
}
}
document.getElementById(neword[0]).style.backgroundImage="url(\"data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewport='0 0 100 100' style='font-family:Verdana;font-size:10px;color:rgba(0,0,0,0.5);'><text y='50%'>" + String.fromCodePoint(eval('0x00003' + 1),0x00fe0f,0x0020e3) + "</text></svg>\")";
document.getElementById(neword[0]).setAttribute('data-order', '1');
ordersofar=neword;
}
} else {
ordersofar.push(itexto.id);
itexto.style.backgroundImage="url(\"data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewport='0 0 100 100' style='font-family:Verdana;font-size:10px;color:rgba(0,0,0,0.5);'><text y='50%'>" + String.fromCodePoint(eval('0x00003' + nextinorder),0x00fe0f,0x0020e3) + "</text></svg>\")";
itexto.style.backgroundRepeat='no-repeat';
if (1 == 1 || window.self == window.parent) {
itexto.style.backgroundPosition='center right';
} else {
itexto.style.backgroundPosition='center left';
}
itexto.setAttribute('data-order', '' + nextinorder);
nextinorder++;
}
}
document.getElementById('mysub').focus();
}
function outgoingcombine() {
var ofrel=['origin', 'scale', 'rotate', 'flip', 'flop', 'translate', 'skew', 'matrix'];
var cssval='';
if (nextinorder > 1) {
ofrel=[];
for (var jof=0; jof<ordersofar.length; jof++) {
ofrel.push(ordersofar[jof]);
}
}
for (var iof=0; iof<ofrel.length; iof++) {
if (cssval.indexOf('transform:') != -1 && document.getElementById(ofrel[iof]).value.indexOf('transform:') != -1) {
cssval=cssval.trim().replace(/\;$/g,' ');
cssval+=document.getElementById(ofrel[iof]).value.replace('transform:', ' ');
} else {
cssval+=document.getElementById(ofrel[iof]).value;
}
}
document.getElementById('css').value=cssval;
if (cssval == '') { return false; }
return true;
}
function orchange(ev) {
if (ev.touches) {
if (ev.touches[0].pageX) {
pos3 = ev.touches[0].pageX;
pos4 = ev.touches[0].pageY;
} else {
pos3 = ev.touches[0].clientX;
pos4 = ev.touches[0].clientY;
}
console.log('pos3 = ' + pos3 + ',pos4 = ' + pos4);
} else if (ev.clientX || ev.clientY) {
pos3 = ev.clientX;
pos4 = ev.clientY;
console.log('pos3 = ' + pos3 + ' ,pos4 = ' + pos4);
} else {
pos3 = ev.pageX;
pos4 = ev.pageY;
console.log('pos3 = ' + pos3 + ', pos4 = ' + pos4);
}
if (pos3 != -999 || pos4 != -999) {
document.getElementById('origin').value='transform-origin: ' + pos3 + 'px ' + pos4 + 'px;';
}
}
function emailit() {
var anchor = document.createElement('a');
anchor.href = 'mailto:?subject=' + encodeURIComponent('CSS Transform Ideas ... ' + (location.search.split('css=')[1] ? 'Last being ... img { ' + decodeURIComponent(location.search.split('css=')[1].split('&')[0]).replace(/\+/g,' ') + ' } ' : '')) + '&body=' + encodeURIComponent(document.URL);
anchor.style.display='none';
anchor.innerHTML='Email';
anchor.target='_top';
anchor.click();
}
function smsit() {
var anchor = document.createElement('a');
anchor.href = 'sms:&body=' + encodeURIComponent(document.URL);
anchor.style.display='none';
anchor.innerHTML='Email';
anchor.target='_top';
anchor.click();
}
function imit() {
var tdrcont='<h1> CSS Transform Fun <button onclick=smsit(); id=bsharesms title=SMS>📟</button> <button onclick=emailit(); id=bshareemail title=Email>📧</button></h1><br>' + String.fromCharCode(10);
tdrcont+='<h3> RJM Programming - November, 2026</h3><br>' + String.fromCharCode(10);
tdrcont+='<h4> Double click below any CSS you want applied where click/tap on map determines transform origin</h4><br><br>' + String.fromCharCode(10);
tdrcont+='<form onsubmit="return outgoingcombine();" method=GET action="./transform_ideas.html"><br>' + String.fromCharCode(10);
tdrcont+=' <input title=Origin style="width:98%;" type=text id=origin placeholder="transform-origin: center center;" value="transform-origin: center center;" ondblclick="this.value=this.placeholder;" value=""></input><br>' + String.fromCharCode(10);
tdrcont+=' <input data-onblur=reorder(this); title=Scale style="width:98%;" type=text id=scale placeholder="transform: scale(0.5);" value="" ondblclick="if (this.value.length == 0) { this.value=this.placeholder; reorder(this); this.title+=tsuff; } else { reorder(this); }" value=""></input><br>' + String.fromCharCode(10);
tdrcont+=' <input data-onblur=reorder(this); title=Rotation style="width:98%;" type=text id=rotate placeholder="transform: rotate(358deg);" value="" ondblclick="if (this.value.length == 0) { this.value=this.placeholder; reorder(this); this.title+=tsuff; } else { reorder(this); }" value=""></input><br>' + String.fromCharCode(10);
tdrcont+=' <input data-onblur=reorder(this); title=Flip style="width:98%;" type=text id=flip placeholder="transform: scaleX(-1);" value="" ondblclick="if (this.value.length == 0) { this.value=this.placeholder; reorder(this); this.title+=tsuff; } else { reorder(this); }" value=""></input><br>' + String.fromCharCode(10);
tdrcont+=' <input data-onblur=reorder(this); title=Flop style="width:98%;" type=text id=flop placeholder="transform: scaleY(-1);" value="" ondblclick="if (this.value.length == 0) { this.value=this.placeholder; reorder(this); this.title+=tsuff; } else { reorder(this); }" value=""></input><br>' + String.fromCharCode(10);
tdrcont+=' <input data-onblur=reorder(this); title=Translate style="width:98%;" type=text id=translate placeholder="transform: translate(0,10%);" value="" ondblclick="if (this.value.length == 0) { this.value=this.placeholder; this.title+=tsuff; reorder(this); } else { reorder(this); }" value=""></input><br>' + String.fromCharCode(10);
tdrcont+=' <input data-onblur=reorder(this); title=Skew style="width:98%;" type=text id=skew placeholder="transform: skew(5deg,8deg);" value="" ondblclick="if (this.value.length == 0) { this.value=this.placeholder; reorder(this); this.title+=tsuff; } else { reorder(this); }" value=""></input><br>' + String.fromCharCode(10);
tdrcont+=' <input data-onblur=reorder(this); title=Matrix style="width:98%;" type=text id=matrix placeholder="transform: matrix(0.866,0.7,-0.8,0.866,0,0);" value="" ondblclick="if (this.value.length == 0) { this.value=this.placeholder; reorder(this); this.title+=tsuff; } else { reorder(this); }" value=""></input><br>' + String.fromCharCode(10);
tdrcont+='<input type=hidden name=css id=css value=""></input>';
tdrcont+='<br><br> <input type=submit id=mysub style=background-color:yellow;color:blue; value="Draw ... ' + (location.search.split('css=')[1] ? 'Last being ... ' + String.fromCharCode(10) + decodeURIComponent(location.search.split('css=')[1].split('&')[0]).replace(/\+/g,' ') : '') + '"></input>';
tdrcont+='</form>';
document.getElementById('tdright').innerHTML='' + tdrcont;
}
</script>
</head>
<body onload=setTimeout(imit,3000);>
<script type=text/javascript>
document.write('<table><tr><td style="width:70%;vertical-align:top;"><img title="Thanks to https://github.com/nvkelso/natural-earth-raster/blob/master/50m_rasters/HYP_50M_SR_W/HYP_50M_SR_W.README.html" id=myimg onclick=orchange(event); style="width:100%;' + (location.search.split('css=')[1] ? decodeURIComponent(location.search.split('css=')[1].split('&')[0]).replace(/\+/g,' ') : '') + '" src=' + imis + '></img></td><td id=tdright style="width:30%;vertical-align:top;"></td></tr></table>');
</script>
</body>
</html>