this is the javascript code i've been using. and i keep getting the error
'''
cannot set property 'animationplaystate' of undefined.
'''
'''
window.setTimeout(function time(){
var run=document.getElementsByClassName('logo');
run.style.animationplaystate='paused';
}, 3000);
'''
below is the style of the element
'''
.logo{
color: rgb(0, 158, 150);
float:right;
padding-right:0px;
font-weight: 600;
padding-top:5px;
margin-right: 20px;
font-size: 2em;
padding-left: 30px;
animation-name:logo;
animation-duration: 1.5s;
animation-play-state: running;
}
'''