Superimposing Multiple HTML Canvases with unique CSS Styles on top of Eachother -


i'm new stackoverflow , programming.

i'm designing website right , wondering if me figure out how stack multiple html canvases on top of eachother, each own css style attached.

right have square in middle of page css style attached establishes it's size, animates growth, etc. want top layer of several, larger squares have same effect (i.e. series of concentric squares expand when moused over.)

here's html code:

<html>   <head>     <meta charset="utf-8"/>     <link href="hvr-grow.css" rel="stylesheet" type="text/css">     <link href="hvr-grow2.css" rel="stylesheet" type="text/css">   </head>   <body onload="draw();">         <div>         <canvas class="hvr-grow" id="magazine 1"></canvas> </div>         <div> <canvas class="hvr-grow2" id="magazine 2"></canvas> </div>   </body> </html> 

and here's css:

 @charset "utf-8"; /* hover-grow */  .hvr-grow {     background-color: #ccc;     display: block;     vertical-align: middle;     transform: translatez(0);     box-shadow: 0 0 1px rgba(0, 0, 0, 0);     backface-visibility: hidden;     -moz-osx-font-smoothing: grayscale;     transition-duration: 0.3s;     transition-property: transform;     position: absolute;     top: 50%; left: 50%;     width: 450px;     height: 450px;     margin: -225px 0 0 -225px;  }  .hvr-grow:hover, .hvr-grow:focus, .hvr-grow:active {     transform: scale(1.03); } 

and

@charset "utf-8"; /* hover-grow 2 */  .hvr-grow {     background-color: #000;     display: block;     vertical-align: middle;     transform: translatez(0);     box-shadow: 0 0 1px rgba(0, 0, 0, 0);     backface-visibility: hidden;     -moz-osx-font-smoothing: grayscale;     transition-duration: 0.3s;     transition-property: transform;     position: absolute;     top: 50%; left: 50%;     width: 200px;     height: 200px;     margin: -100px 0 0 -100px;      z-index: 2; }  .hvr-grow:hover, .hvr-grow:focus, .hvr-grow:active {     transform: scale(1.03); } 

i thinking canvas style = "z-index: ..." might helpful, i'm not sure how implement in case.

any ideas appreciated!

thanks!


Comments

Popular posts from this blog

get url and add instance to a model with prefilled foreign key :django admin -

css - Make div keyboard-scrollable in jQuery Mobile? -

ruby on rails - Seeing duplicate requests handled with Unicorn -