There is no clear idea is given on the scenario on which you want a scenario, but still i have tried to give one solution as per my understanding of your question.
What i understand you have a title and you wan to appear a style for the title on click of it, and after 5 seconds it will disappear automatically.
So let say your title is a span with ID = '
spanTitle' as below :
<span id="spanTitle">Sample Title</span>
We have a css class which will apply font style as you want like below :-
.headerStyle{
font-weight:bold;
color:red;
}
Now here is the jQuery code which will set the style for it on click of it, also it will automatically be normal after 5 secs.
Ex :-
$(document).ready(function(){
$('#spanTitle').click(function(){
$('#spanTitle').addClass('headerStyle');
setTimeout(function(){change_style();},5000);
});
});
function change_style(){
$('#spanTitle').removeClass('headerStyle');
}
Hope this is the exact solution what you are looking for and what i understood your question, if not can you please elaborate your question a bit more ?