I searched little and did this which is working.
add_filter('next_posts_link_attributes', 'posts_link_attributes_1');
add_filter('previous_posts_link_attributes', 'posts_link_attributes_2');
function posts_link_attributes_1() {
return 'data-hover="Next" class="your class here"';
}
function posts_link_attributes_2() {
return 'data-hover="Previous" class="your class here"';
}