مثال (رویداد propertyName)

Get the property name associated with the transition:

document.getElementById("myDIV").addEventListener("transitionend", myFunction);

function myFunction(event) {
    this.innerHTML = "Property name is: " + event.propertyName;
}

خودتان امتحان کنید »

تعریف و کاربرد

The propertyName property returns the name of the CSS property associated with the transition, when a transitionevent occurs.

This property is read-only.


پشتیبانی مرورگرها

The numbers in the table specify the first browser version that fully supports the property.

متد     
propertyName بله 10.0 4.0 بله بله

نحوه استفاده

event.propertyName

جزئیات تکنیکی

مقدار برگشتی A String, representing the name of the transition

آموزش های مرتبط

مرجع مدل DOM در اچ تی ام ال The transitionend Event

مرجع مدل DOM در اچ تی ام ال TransitionEvent elapsedTime Property

CSS reference: CSS3 transition Property

CSS reference: CSS3 transition-property Property


مرجع کلیه رویدادهای JavaScript Reference مرجع کلیه رویدادهای JavaScript