mirror of
https://github.com/SillyTavern/SillyTavern.git
synced 2025-06-05 21:59:27 +02:00
Fix sprite animation
This commit is contained in:
@ -334,7 +334,7 @@ async function setImage(img, path) {
|
|||||||
expressionHolder.css('min-height', imgHeight > 100 ? imgHeight : 100);
|
expressionHolder.css('min-height', imgHeight > 100 ? imgHeight : 100);
|
||||||
|
|
||||||
//position absolute prevent the original from jumping around during transition
|
//position absolute prevent the original from jumping around during transition
|
||||||
img.css('position', 'absolute');
|
img.css('position', 'absolute').width(imgWidth).height(imgHeight);
|
||||||
expressionClone.addClass('expression-animating');
|
expressionClone.addClass('expression-animating');
|
||||||
//fade the clone in
|
//fade the clone in
|
||||||
expressionClone.css({
|
expressionClone.css({
|
||||||
@ -919,7 +919,7 @@ async function setExpression(character, expression, force) {
|
|||||||
expressionHolder.css('min-height', imgHeight > 100 ? imgHeight : 100);
|
expressionHolder.css('min-height', imgHeight > 100 ? imgHeight : 100);
|
||||||
|
|
||||||
//position absolute prevent the original from jumping around during transition
|
//position absolute prevent the original from jumping around during transition
|
||||||
img.css('position', 'absolute');
|
img.css('position', 'absolute').width(imgWidth).height(imgHeight);
|
||||||
expressionClone.addClass('expression-animating');
|
expressionClone.addClass('expression-animating');
|
||||||
//fade the clone in
|
//fade the clone in
|
||||||
expressionClone.css({
|
expressionClone.css({
|
||||||
|
Reference in New Issue
Block a user