2016-02-26 03:29:41 +03:00
|
|
|
<!DOCTYPE html>
|
|
|
|
<html lang="en">
|
|
|
|
<meta charset="utf-8">
|
|
|
|
<title>Perspective in scrolled state</title>
|
|
|
|
|
|
|
|
<style>
|
|
|
|
|
|
|
|
html {
|
|
|
|
height: 100%;
|
|
|
|
overflow: hidden;
|
|
|
|
}
|
|
|
|
|
|
|
|
body {
|
|
|
|
height: 100%;
|
|
|
|
perspective: 1px;
|
|
|
|
overflow: auto;
|
|
|
|
margin: 0;
|
|
|
|
}
|
|
|
|
|
2016-03-09 20:08:34 +03:00
|
|
|
.transformed {
|
2016-02-26 03:29:41 +03:00
|
|
|
margin: 300px 100px 100px;
|
2016-03-09 20:08:34 +03:00
|
|
|
width: 200px;
|
|
|
|
height: 200px;
|
2016-02-26 03:29:41 +03:00
|
|
|
border: 10px solid black;
|
|
|
|
}
|
|
|
|
|
2016-03-09 20:08:34 +03:00
|
|
|
.spacer {
|
|
|
|
height: 4000px;
|
|
|
|
}
|
|
|
|
|
2016-02-26 03:29:41 +03:00
|
|
|
</style>
|
|
|
|
|
2016-03-09 20:08:34 +03:00
|
|
|
<div class="transformed"></div>
|
|
|
|
<div class="spacer"></div>
|
2016-02-26 03:29:41 +03:00
|
|
|
|
|
|
|
<script>
|
|
|
|
|
|
|
|
document.body.scrollTop = 200;
|
|
|
|
|
|
|
|
</script>
|