allowAnimations
allowAnimations
is an optional property that enables css animations and transitions on the page before taking the screenshot. By default, animations and transitions are enabled.
api/routes/screenshot.ts
const { UrlToImage } from '@url2image/sdk'
const { data, success, message } = await UrlToImage({
url: 'URL_TO_SCREENSHOT',
token: 'YOUR_API_KEY',
options: {
allowAnimations: false
}
})