ImageGrid/ui (gen4)/index.html
Alex A. Naanou 4f5b432c08 fixed shadow image with scaling...
Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
2014-10-17 15:11:23 +04:00

154 lines
2.8 KiB
HTML
Executable File

<!DOCTYPE html>
<html>
<head>
<link rel="stylesheet" href="css/layout.css">
<link rel="stylesheet" href="css/editor.css">
<!-- XXX remove before use... -->
<style>
.image:after {
content: attr(gid);
display: block;
position: relative;
color: red;
margin: 10px;
width: 20px;
height: 20px;
text-align: center;
border: solid 2px red;
border-radius: 50%;
background: black;
}
.image.current {
border-color: red;
}
.shadow {
position: absolute;
overflow: visible;
width: auto;
height: auto;
background: black;
-webkit-transition: all 0.1s ease-in;
-moz-transition: all 0.1s ease-in;
transition: all 0.1s ease-in;
}
.shadow .image {
transform-origin: 0 0;
}
.image.moving {
visibility: hidden;
}
/* basic animation... */
.viewer:not(.no-transitions) .ribbon-set {
-webkit-transition: all 0.2s ease, transform 0.2s linear/*, transform-origin 0s none*/;
-moz-transition: all 0.2s ease, transform 0.2s linear/*, transform-origin 0s none*/;
transition: all 0.2s ease, transform 0.2s linear/*, transform-origin 0s none*/;
}
.viewer:not(.no-transitions) .ribbon {
-webkit-transition: all 0.2s ease;
-moz-transition: all 0.2s ease;
transition: all 0.2s ease;
}
.no-transitions {
-webkit-transition: none;
-moz-transition: none;
transition: none;
}
.container-center {
position: absolute;
top: 50%;
left: 50%;
width: 10px;
height: 10px;
border-top: solid 1px black;
border-left: solid 1px black;
}
.container-center:after {
content: "";
position: absolute;
top: -11px;
left: -11px;
width: 10px;
height: 10px;
border-top: none;
border-left: none;
border-bottom: solid 1px black;
border-right: solid 1px black;
}
.point {
position: absolute;
width: 4px;
height: 4px;
border: solid 1px blue;
margin-top: -2px;
margin-left: -2px;
background: yellow;
transition-origin: 50% 50%;
z-index: 9999;
}
.point {
-webkit-transition: all 0.2s linear;
-moz-transition: all 0.2s linear;
transition: all 0.2s linear;
}
</style>
<!--script>
require('nw.gui').Window.get().showDevTools()
</script-->
<script src="ext-lib/jquery.js"></script>
<script src="ext-lib/jquery-ui.js"></script>
<script src="lib/jli.js"></script>
<script data-main="ui" src="ext-lib/require.js"></script>
</head>
<body>
<!-- for viewer structure doc see: ribbons.js... -->
<div class="viewer gray marks-visible">
<div class="ribbon-set">
<div class="point" title="current origin point"> </div>
</div>
<!-- XXX should these be here???
<div class="overlay-block">
<div class="background"></div>
<div class="content"></div>
</div>
-->
<div class="container-center"> </div>
</div>
<!-- vim:set ts=4 sw=4 spell : -->
</body>
</html>