I am using Angular to set a background image for my page, but the current loading behavior is not visually appealing as the image loads from top to bottom. I would like to implement a fade-in effect or load the image from a blurry view to enhance the user experience. However, I am unsure of how to integrate JavaScript/jQuery into my Angular code to achieve this. Any suggestions on alternative methods for loading the background image?
Template
<body ng-controller="MainCtrl" ng-style="heroImage">
//rest of the HTML
</body>
Javascript
$scope.heroImage = {
'background': 'linear-gradient( rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.5) ), url('+ $scope.place["imageLink"] +')',
'background-size': 'cover',
'height': '100vh',
'background-repeat': 'no-repeat'
};