現在jqueryでポップアップ(画像)をどんどん大きくなるようなアニメーションを作っています。
画像は画面からはみ出るくらい大きくさせたいです。
しかし、左だけどうしても画面からはみ出ません。
ソースコードはこんな感じです。
html
1<!DOCTYPE html> 2<html lang="ja"> 3<head> 4 <title>ポップアップ</title> 5 <meta charset="utf-8"> 6 <style> 7 body, * { 8 overflow: hidden; 9 } 10 img { 11 margin: auto; 12 position: absolute; 13 top: 0; 14 left: 0; 15 right: 0; 16 bottom: 0; 17 } 18 </style> 19 <script src="https://code.jquery.com/jquery-3.1.1.js"></script> 20</head> 21<body> 22 <img src="oudon.png" id="oudon-img"> 23 <script> 24 (function(){ 25 $("#oudon-img").animate({ 26 width: "10000px", 27 height: "10000px" 28 }, { 29 duration: 10000, 30 easing: "swing" 31 }); 32 })(); 33 </script> 34</body> 35</html>
分かる方、ご回答お願いします。org
回答1件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。
退会済みユーザー
2019/05/13 10:32