The 'transition' option does not work in this code
What is wrong?
If you can explain where I went wrong
I wanted it to come up slowly
<!DOCTYPE html>
<html>
<head>
<title>teste</title>
<style type="text/css">
div{
width: 500px;
height: 100px;
border:5px solid blue;
display: none;
}
</style>
</head>
<body>
<script type="text/javascript">
function chamar(){
document.getElementById("aparecer").style.display="block"
document.getElementById("aparecer").style.transition='all 3s'
}
</script>
<p onClick="chamar()">chamar</p>
<div id="aparecer"></div>
</body>
</html>