Bear with me as a newbie… I’m using css transition to enlarge an image in a cell onhover. The result is, onhover the image enlarges but within the confines of the cell size, which seems set somehow. I can’t get the cell to enlarge with the image. If I place it outside of the grid in regular html, it works ok. Not sure how much info to provide, but in brief as follows:
1. Cell Defined: { text: 'Details', datafield: 'imageref', cellsrenderer: imagerender},
2. `var imagerender = function (row, column, value) {
return ‘<img style=position:absolute; class=”img-zoom” src=’ + value + ‘>’; }`
3. `cellhover: function (element, pageX, pageY) {
$(‘.img-zoom’).hover(function () {
$(this).addClass(‘transition’);
},
function () {
$(this).removeClass(‘transition’);
});
},`
4. CSS:
` .img-zoom {
-webkit-transition: all .2s ease-in-out;
-moz-transition: all .2s ease-in-out;
-o-transition: all .2s ease-in-out;
-ms-transition: all .2s ease-in-out;
}
.transition {
-webkit-transform: scale(2);
-moz-transform: scale(2);
-o-transform: scale(2);
transform: scale(2);
}`
appreciate any guidance.