I believe you can do it this way:
if ('WebkitTransform' in document.body.style
|| 'MozTransform' in document.body.style
|| 'OTransform' in document.body.style
|| 'transform' in document.body.style)
{
alert('I can Rotate!');
}
More Related Contents:
- 5 stars and the golden 5 stars are not together (When browsing with Internet explorer)
- How to make page loaders/animations/transitions
- How to dynamically create CSS class in JavaScript and apply?
- How do you add CSS with Javascript?
- Textarea Auto height [duplicate]
- React Js conditionally applying class attributes
- Get element CSS property (width/height) value as it was set (in percent/em/px/etc)
- iOS 8 removed “minimal-ui” viewport property, are there other “soft fullscreen” solutions?
- Should CSS always precede Javascript?
- How to close an open collapsed navbar when clicking outside of the navbar element in Bootstrap 3?
- JavaScript: Find DIV’s line-height, not CSS property but actual line-height
- How to set background color of HTML element using css properties in JavaScript
- CSS delivery optimization: How to defer css loading?
- Bootstrap v2 Dropdown Navigation not working on Mobile Browsers
- How to build simple tabs with jQuery?
- Wrapping Text in D3
- CSS selector for targeting only immediate children and not other identical descendants
- Failed to load resource: the server responded with a status of 404 (Not Found)
- How to window.scrollTo() with a smooth effect
- Add CSS to with JavaScript?
- How to get border width in jQuery/javascript
- Can I transition the flex-grow of a flex box to produce an animation?
- how to get the base url in javascript
- How to show hidden divs on mouseover?
- Reading non-inline CSS style info from Javascript
- How to Bootstrap navbar static to fixed on scroll?
- How to Access styles from React?
- How to use pagination on HTML tables?
- Toggle divs without using Javascript
- How can I reorder elements with JavaScript?